summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2023-10-09 11:25:31 +0200
committerOskar Nyberg <oskar@mullvad.net>2023-10-09 13:16:29 +0200
commitbe39d12f52606aba148ba1ae3d4755a4898d7d9a (patch)
treed1667e4456c2537fbfca6c4843f74ca376297797
parent48d6a7599d8052d76ed61b9dfb84975af1438184 (diff)
downloadmullvadvpn-be39d12f52606aba148ba1ae3d4755a4898d7d9a.tar.xz
mullvadvpn-be39d12f52606aba148ba1ae3d4755a4898d7d9a.zip
Add label to custom list row in add dialog
-rw-r--r--gui/locales/messages.pot4
-rw-r--r--gui/src/renderer/components/select-location/CustomListDialogs.tsx4
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>
);