diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2023-10-09 11:25:31 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2023-10-09 13:16:29 +0200 |
| commit | be39d12f52606aba148ba1ae3d4755a4898d7d9a (patch) | |
| tree | d1667e4456c2537fbfca6c4843f74ca376297797 | |
| parent | 48d6a7599d8052d76ed61b9dfb84975af1438184 (diff) | |
| download | mullvadvpn-be39d12f52606aba148ba1ae3d4755a4898d7d9a.tar.xz mullvadvpn-be39d12f52606aba148ba1ae3d4755a4898d7d9a.zip | |
Add label to custom list row in add dialog
| -rw-r--r-- | gui/locales/messages.pot | 4 | ||||
| -rw-r--r-- | gui/src/renderer/components/select-location/CustomListDialogs.tsx | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gui/locales/messages.pot b/gui/locales/messages.pot index fee728934d..61f4d4be5a 100644 --- a/gui/locales/messages.pot +++ b/gui/locales/messages.pot @@ -999,6 +999,10 @@ msgctxt "select-location-nav" msgid "Select location" msgstr "" +msgctxt "select-location-view" +msgid "(Added)" +msgstr "" + #. This is used for appending information about a location. #. E.g. "Gothenburg (Entry)" if Gothenburg has been selected as the entrypoint. #. Available placeholders: diff --git a/gui/src/renderer/components/select-location/CustomListDialogs.tsx b/gui/src/renderer/components/select-location/CustomListDialogs.tsx index e68c87e3a4..7af8c1b622 100644 --- a/gui/src/renderer/components/select-location/CustomListDialogs.tsx +++ b/gui/src/renderer/components/select-location/CustomListDialogs.tsx @@ -123,7 +123,9 @@ function SelectList(props: SelectListProps) { return ( <Cell.CellButton onClick={onAdd} disabled={disabled}> - <StyledSelectListItemLabel>{props.list.name}</StyledSelectListItemLabel> + <StyledSelectListItemLabel> + {props.list.name} {disabled && messages.pgettext('select-location-view', '(Added)')} + </StyledSelectListItemLabel> <StyledSelectListItemIcon source="icon-add" width={18} /> </Cell.CellButton> ); |
