Skip to content

Commit

Permalink
ADd "disabled" label on app list, when app is disabled (#3282)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkostrowski authored and andrzejewsky committed Mar 8, 2023
1 parent 91fea83 commit 34efd26
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions locale/defaultMessages.json
Expand Up @@ -1269,6 +1269,10 @@
"context": "select title",
"string": "Select channels you want for {contentType} to be available on"
},
"7u9Ep7": {
"context": "Label when app is disabled",
"string": "Disabled"
},
"7v2oBd": {
"context": "header",
"string": "Error"
Expand Down
Expand Up @@ -94,7 +94,12 @@ export const InstalledAppListRow: React.FC<InstalledApp> = props => {
justifyContent={{ mobile: "flex-end", desktop: "flex-start" }}
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} />
</Box>
<TableButtonWrapper>
Expand Down
5 changes: 5 additions & 0 deletions src/new-apps/components/InstalledAppListRow/messages.ts
Expand Up @@ -11,4 +11,9 @@ export const messages = defineMessages({
defaultMessage: "Settings",
description: "button label",
},
appDisabled: {
id: "7u9Ep7",
defaultMessage: "Disabled",
description: "Label when app is disabled",
},
});

0 comments on commit 34efd26

Please sign in to comment.