Skip to content

Commit 281d31a

Browse files
committed
feat(ui): add maxmind tooltip
1 parent f8fd9fe commit 281d31a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ui/public/i18n/en/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"vpn_port_description": "Units will connect to controller using a VPN connection. Make sure the units can reach the controller on UDP port {port}",
5959
"maxmind_license": "MaxMind license key",
6060
"maxmind_license_helper": "The license key is required to use the MaxMind GeoIP2 database",
61+
"maxmind_license_tooltip": "Enable IP geolocations inside Grafana dashboards",
6162
"allowed_ips": "Allowed IPs",
6263
"allowed_ips_helper": "One IPv4 or CIDR per line. Leave empty to allow all IPs",
6364
"allowed_ips_tooltip": "Required unit version: 8.6 or above. This field is used to restrict the access to the controller. When the access is restricted, units will contact the public register endpoint, then all traffic will go through the VPN.",

ui/src/views/Settings.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@
206206
:passwordHideLabel="$t('password.hide_password')"
207207
:passwordShowLabel="$t('password.show_password')"
208208
>
209+
<template #tooltip>{{
210+
$t("settings.maxmind_license_tooltip")
211+
}}</template>
209212
</NsTextInput>
210213
<NsTextInput v-model.trim="tun_mtu" ref="tun_mtu"
211214
:invalid-message="$t(error.tun_mtu)" type="number" :label="$t('settings.tun_mtu')"

0 commit comments

Comments
 (0)