diff options
| author | Ekaterina Vaartis <vaartis@kotobank.ch> | 2024-01-17 22:41:18 +0300 |
|---|---|---|
| committer | Ekaterina Vaartis <vaartis@kotobank.ch> | 2024-01-18 16:24:55 +0300 |
| commit | a2133f528333f5255296c15fb2b7abcab688bf1c (patch) | |
| tree | 6db4e3183f0a53b6d95239f9d3a0bef10459d033 /src/components/settings_modal/helpers/modified_indicator.vue | |
| parent | 872dffe51b4d96aafb2089917928f82d5a1350db (diff) | |
Rearrange stuff in accordance with comments on the MR, mostly
Also, add support for a custom message to the modified indicator
Diffstat (limited to 'src/components/settings_modal/helpers/modified_indicator.vue')
| -rw-r--r-- | src/components/settings_modal/helpers/modified_indicator.vue | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/settings_modal/helpers/modified_indicator.vue b/src/components/settings_modal/helpers/modified_indicator.vue index 45db3fc2..a747cebd 100644 --- a/src/components/settings_modal/helpers/modified_indicator.vue +++ b/src/components/settings_modal/helpers/modified_indicator.vue @@ -15,7 +15,7 @@ </template> <template #content> <div class="modified-tooltip"> - {{ $t('settings.setting_changed') }} + {{ $t(messageKey) }} </div> </template> </Popover> @@ -33,7 +33,13 @@ library.add( export default { components: { Popover }, - props: ['changed'] + props: { + changed: Boolean, + messageKey: { + type: String, + default: 'settings.setting_changed' + } + } } </script> |
