saleor-dashboard/src/siteSettings/mutations.ts
Jonatan Witoszek 1cab89f297
Remove store name, store URL and Store description from dashboard settings (#1989)
* Disable store domain field in cloud, update query to save store name

* Update field label for domain to "Store API URL"

* Remove store name from store settings page

* Skip enitre shopDomainUpdate mutation when running in cloud

* Remove SiteDetailsSettingsCard

* Update snapshots
2022-04-25 14:00:06 +02:00

28 lines
540 B
TypeScript

import { gql } from "@apollo/client";
export const shopSettingsUpdate = gql`
mutation ShopSettingsUpdate(
$shopSettingsInput: ShopSettingsInput!
$addressInput: AddressInput
$isCloudInstance: Boolean!
) {
shopSettingsUpdate(input: $shopSettingsInput) {
errors {
...ShopError
}
shop {
...Shop
}
}
shopAddressUpdate(input: $addressInput) {
errors {
...ShopError
}
shop {
companyAddress {
...Address
}
}
}
}
`;