Rename variables service_account to apps
This commit is contained in:
parent
2c46e57271
commit
75b2487c57
6 changed files with 15 additions and 14 deletions
|
@ -3022,6 +3022,7 @@ enum PermissionEnum {
|
||||||
MANAGE_USERS
|
MANAGE_USERS
|
||||||
MANAGE_STAFF
|
MANAGE_STAFF
|
||||||
MANAGE_SERVICE_ACCOUNTS
|
MANAGE_SERVICE_ACCOUNTS
|
||||||
|
MANAGE_APPS
|
||||||
MANAGE_DISCOUNTS
|
MANAGE_DISCOUNTS
|
||||||
MANAGE_PLUGINS
|
MANAGE_PLUGINS
|
||||||
MANAGE_GIFT_CARD
|
MANAGE_GIFT_CARD
|
||||||
|
|
|
@ -160,7 +160,7 @@ export function createConfigurationMenu(intl: IntlShape): MenuSection[] {
|
||||||
defaultMessage: "Manage external integrations accounts"
|
defaultMessage: "Manage external integrations accounts"
|
||||||
}),
|
}),
|
||||||
icon: <Bot fontSize="inherit" viewBox="0 0 44 44" />,
|
icon: <Bot fontSize="inherit" viewBox="0 0 44 44" />,
|
||||||
permission: PermissionEnum.MANAGE_SERVICE_ACCOUNTS,
|
permission: PermissionEnum.MANAGE_APPS,
|
||||||
title: intl.formatMessage(sectionNames.serviceAccounts),
|
title: intl.formatMessage(sectionNames.serviceAccounts),
|
||||||
url: serviceListUrl()
|
url: serviceListUrl()
|
||||||
},
|
},
|
||||||
|
|
|
@ -365,8 +365,8 @@ export const permissions: ShopInfo_shop_permissions[] = [
|
||||||
name: "Manage plugins."
|
name: "Manage plugins."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
code: PermissionEnum.MANAGE_SERVICE_ACCOUNTS,
|
code: PermissionEnum.MANAGE_APPS,
|
||||||
name: "Manage service accounts."
|
name: "Manage apps."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
code: PermissionEnum.MANAGE_WEBHOOKS,
|
code: PermissionEnum.MANAGE_WEBHOOKS,
|
||||||
|
|
|
@ -253,7 +253,7 @@ const Routes: React.FC = () => {
|
||||||
component={AttributeSection}
|
component={AttributeSection}
|
||||||
/>
|
/>
|
||||||
<SectionRoute
|
<SectionRoute
|
||||||
permissions={[PermissionEnum.MANAGE_SERVICE_ACCOUNTS]}
|
permissions={[PermissionEnum.MANAGE_APPS]}
|
||||||
path={serviceSection}
|
path={serviceSection}
|
||||||
component={ServiceSection}
|
component={ServiceSection}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -117180,7 +117180,7 @@ exports[`Storyshots Views / Services / Create service default 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
class="Checkbox-box-id"
|
class="Checkbox-box-id"
|
||||||
name="MANAGE_SERVICE_ACCOUNTS"
|
name="MANAGE_APPS"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value="false"
|
value="false"
|
||||||
/>
|
/>
|
||||||
|
@ -117675,7 +117675,7 @@ exports[`Storyshots Views / Services / Create service form errors 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
class="Checkbox-box-id"
|
class="Checkbox-box-id"
|
||||||
name="MANAGE_SERVICE_ACCOUNTS"
|
name="MANAGE_APPS"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value="false"
|
value="false"
|
||||||
/>
|
/>
|
||||||
|
@ -118190,7 +118190,7 @@ exports[`Storyshots Views / Services / Create service loading 1`] = `
|
||||||
<input
|
<input
|
||||||
class="Checkbox-box-id Checkbox-disabled-id"
|
class="Checkbox-box-id Checkbox-disabled-id"
|
||||||
disabled=""
|
disabled=""
|
||||||
name="MANAGE_SERVICE_ACCOUNTS"
|
name="MANAGE_APPS"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value="false"
|
value="false"
|
||||||
/>
|
/>
|
||||||
|
@ -118805,7 +118805,7 @@ exports[`Storyshots Views / Services / Service details default 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
class="Checkbox-box-id"
|
class="Checkbox-box-id"
|
||||||
name="MANAGE_SERVICE_ACCOUNTS"
|
name="MANAGE_APPS"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value="false"
|
value="false"
|
||||||
/>
|
/>
|
||||||
|
@ -119494,7 +119494,7 @@ exports[`Storyshots Views / Services / Service details default token 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
class="Checkbox-box-id"
|
class="Checkbox-box-id"
|
||||||
name="MANAGE_SERVICE_ACCOUNTS"
|
name="MANAGE_APPS"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value="false"
|
value="false"
|
||||||
/>
|
/>
|
||||||
|
@ -120105,7 +120105,7 @@ exports[`Storyshots Views / Services / Service details form errors 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
class="Checkbox-box-id"
|
class="Checkbox-box-id"
|
||||||
name="MANAGE_SERVICE_ACCOUNTS"
|
name="MANAGE_APPS"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value="false"
|
value="false"
|
||||||
/>
|
/>
|
||||||
|
@ -120749,7 +120749,7 @@ exports[`Storyshots Views / Services / Service details loading 1`] = `
|
||||||
<input
|
<input
|
||||||
class="Checkbox-box-id Checkbox-disabled-id"
|
class="Checkbox-box-id Checkbox-disabled-id"
|
||||||
disabled=""
|
disabled=""
|
||||||
name="MANAGE_SERVICE_ACCOUNTS"
|
name="MANAGE_APPS"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value="false"
|
value="false"
|
||||||
/>
|
/>
|
||||||
|
@ -130025,7 +130025,7 @@ exports[`Storyshots Views / Staff / Staff member details loading 1`] = `
|
||||||
<input
|
<input
|
||||||
class="Checkbox-box-id Checkbox-disabled-id"
|
class="Checkbox-box-id Checkbox-disabled-id"
|
||||||
disabled=""
|
disabled=""
|
||||||
name="MANAGE_SERVICE_ACCOUNTS"
|
name="MANAGE_APPS"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value="false"
|
value="false"
|
||||||
/>
|
/>
|
||||||
|
@ -130623,7 +130623,7 @@ exports[`Storyshots Views / Staff / Staff member details not admin 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
class="Checkbox-box-id Checkbox-checked-id"
|
class="Checkbox-box-id Checkbox-checked-id"
|
||||||
name="MANAGE_SERVICE_ACCOUNTS"
|
name="MANAGE_APPS"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value="true"
|
value="true"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -566,7 +566,7 @@ export enum PermissionEnum {
|
||||||
MANAGE_PAGES = "MANAGE_PAGES",
|
MANAGE_PAGES = "MANAGE_PAGES",
|
||||||
MANAGE_PLUGINS = "MANAGE_PLUGINS",
|
MANAGE_PLUGINS = "MANAGE_PLUGINS",
|
||||||
MANAGE_PRODUCTS = "MANAGE_PRODUCTS",
|
MANAGE_PRODUCTS = "MANAGE_PRODUCTS",
|
||||||
MANAGE_SERVICE_ACCOUNTS = "MANAGE_SERVICE_ACCOUNTS",
|
MANAGE_APPS = "MANAGE_APPS",
|
||||||
MANAGE_SETTINGS = "MANAGE_SETTINGS",
|
MANAGE_SETTINGS = "MANAGE_SETTINGS",
|
||||||
MANAGE_SHIPPING = "MANAGE_SHIPPING",
|
MANAGE_SHIPPING = "MANAGE_SHIPPING",
|
||||||
MANAGE_STAFF = "MANAGE_STAFF",
|
MANAGE_STAFF = "MANAGE_STAFF",
|
||||||
|
|
Loading…
Reference in a new issue