Skip to content

Commit

Permalink
Launcher: Add tooltip for 'save this configuratioin'
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed May 27, 2021
1 parent 26565d4 commit f93daf8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useConstCallback } from "powerhooks";
import { TextField } from "app/components/designSystem/TextField";
import type { TextFieldProps } from "app/components/designSystem/TextField";
import { Tooltip } from "app/components/designSystem/Tooltip";
import { capitalize } from "app/tools/capitalize";
import { capitalize } from "app/tools/capitalize";

const { useClassNames } = createUseClassNames()(
theme => ({
Expand Down Expand Up @@ -126,10 +126,12 @@ export const CatalogLauncherMainCard = memo((props: Props) => {
onClick={onRequestCopyLaunchUrl}
/>
</Tooltip>}
<IconButton
type={isBookmarked ? "bookmark" : "bookmarkBorder"}
onClick={onBookmarkIconButtonClick}
/>
<Tooltip title={t("save configuration")}>
<IconButton
type={isBookmarked ? "bookmark" : "bookmarkBorder"}
onClick={onBookmarkIconButtonClick}
/>
</Tooltip>
</div>
<div className={classNames.belowDivider}>
<div className={classNames.avatarAndTitleWrapper}>
Expand Down Expand Up @@ -183,5 +185,6 @@ export declare namespace CatalogLauncherMainCard {
launch: undefined
'friendly name': undefined;
'copy url helper text': undefined;
'save configuration': undefined;
};
}
6 changes: 4 additions & 2 deletions src/app/i18n/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ export const resources = id<Record<SupportedLanguage, Translations>>({
"friendly name": "Friendly name",
"launch": "Launch",
"cancel": "Cancel",
"copy url helper text": "Copy url to restore this configuration"
"copy url helper text": "Copy url to restore this configuration",
"save configuration": "Save this configuration"
}
},
"fr": {
Expand Down Expand Up @@ -534,7 +535,8 @@ export const resources = id<Record<SupportedLanguage, Translations>>({
"friendly name": "Nom personalisé",
"launch": "Lancer",
"cancel": "Annuler",
"copy url helper text": "Copier l'URL permettant de restaurer cette configuration"
"copy url helper text": "Copier l'URL permettant de restaurer cette configuration",
"save configuration": "Enregistrer cette configuration"
}
/* spell-checker: enable */
}
Expand Down

0 comments on commit f93daf8

Please sign in to comment.