diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-02-19 16:34:11 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-02-28 10:45:00 +0100 |
| commit | d45e31093f57b8ddd8a0b3ccfc911c18e52d714f (patch) | |
| tree | eb9607284009ae70864ab925dbc5a5eba9c60e32 | |
| parent | 82445a06dea65d151794180ba4b95367d9c8d39c (diff) | |
| download | mullvadvpn-d45e31093f57b8ddd8a0b3ccfc911c18e52d714f.tar.xz mullvadvpn-d45e31093f57b8ddd8a0b3ccfc911c18e52d714f.zip | |
Ensure custom lists are labeled appropriately when blocked
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/renderer/components/select-location/custom-list-helpers.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/select-location/custom-list-helpers.ts b/desktop/packages/mullvad-vpn/src/renderer/components/select-location/custom-list-helpers.ts index 3f6149cd7f..5cbe77187c 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/components/select-location/custom-list-helpers.ts +++ b/desktop/packages/mullvad-vpn/src/renderer/components/select-location/custom-list-helpers.ts @@ -9,7 +9,12 @@ import { usePreventDueToCustomBridgeSelected, useSelectedLocation, } from './RelayListContext'; -import { isCustomListDisabled, isExpanded, isSelected } from './select-location-helpers'; +import { + formatRowName, + isCustomListDisabled, + isExpanded, + isSelected, +} from './select-location-helpers'; import { CitySpecification, CountrySpecification, @@ -73,7 +78,7 @@ function prepareCustomList( const disabledReason = isCustomListDisabled(location, locations, disabledLocation); return { - label: list.name, + label: formatRowName(list.name, location, disabledReason), list, location, active: disabledReason !== DisabledReason.inactive, |
