ADd "disabled" label on app list, when app is disabled (#3282)
This commit is contained in:
parent
e7ce3000f3
commit
c335e44f3c
3 changed files with 15 additions and 1 deletions
|
@ -1269,6 +1269,10 @@
|
||||||
"context": "select title",
|
"context": "select title",
|
||||||
"string": "Select channels you want for {contentType} to be available on"
|
"string": "Select channels you want for {contentType} to be available on"
|
||||||
},
|
},
|
||||||
|
"7u9Ep7": {
|
||||||
|
"context": "Label when app is disabled",
|
||||||
|
"string": "Disabled"
|
||||||
|
},
|
||||||
"7v2oBd": {
|
"7v2oBd": {
|
||||||
"context": "header",
|
"context": "header",
|
||||||
"string": "Error"
|
"string": "Error"
|
||||||
|
|
|
@ -94,7 +94,12 @@ export const InstalledAppListRow: React.FC<InstalledApp> = props => {
|
||||||
justifyContent={{ mobile: "flex-end", desktop: "flex-start" }}
|
justifyContent={{ mobile: "flex-end", desktop: "flex-start" }}
|
||||||
gap={6}
|
gap={6}
|
||||||
>
|
>
|
||||||
<Box marginLeft="auto">
|
<Box marginLeft="auto" display="flex" alignItems="center" gap={8}>
|
||||||
|
{!app.isActive && (
|
||||||
|
<Text variant="caption" color="textNeutralSubdued">
|
||||||
|
<FormattedMessage {...messages.appDisabled} />
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
<AppPermissions permissions={app.permissions} />
|
<AppPermissions permissions={app.permissions} />
|
||||||
</Box>
|
</Box>
|
||||||
<TableButtonWrapper>
|
<TableButtonWrapper>
|
||||||
|
|
|
@ -11,4 +11,9 @@ export const messages = defineMessages({
|
||||||
defaultMessage: "Settings",
|
defaultMessage: "Settings",
|
||||||
description: "button label",
|
description: "button label",
|
||||||
},
|
},
|
||||||
|
appDisabled: {
|
||||||
|
id: "7u9Ep7",
|
||||||
|
defaultMessage: "Disabled",
|
||||||
|
description: "Label when app is disabled",
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue