ADd "disabled" label on app list, when app is disabled (#3282)

This commit is contained in:
Lukasz Ostrowski 2023-03-03 19:22:10 +01:00 committed by GitHub
parent e7ce3000f3
commit c335e44f3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View file

@ -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"

View file

@ -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>

View file

@ -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",
},
}); });