From 2671fd32d3c3dc3293fc6c9bb3741f3811606d82 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 6 Aug 2022 13:50:40 +0200 Subject: [PATCH] global settings: fix i18n --- app/src/i18n/locales/en.json | 4 ++++ app/src/views/tool/ToolSettings.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/i18n/locales/en.json b/app/src/i18n/locales/en.json index 7eac7dec..81d17059 100644 --- a/app/src/i18n/locales/en.json +++ b/app/src/i18n/locales/en.json @@ -452,6 +452,9 @@ "create": "Create user '{name}'", "delete": "Delete user '{name}'", "update": "Update user '{name}'" + }, + "settings": { + "update": "Update global settings" } }, "run": "Run", @@ -501,6 +504,7 @@ "experimental_description": "Gives you access to experimental features. These are considered unstable and may break your system.
Enable this only if you know what you are doing.", "transitions": "Page transition animations" }, + "tools_yunohost_settings": "YunoHost settings", "tools_webadmin_settings": "Web-admin settings", "traceback": "Traceback", "udp": "UDP", diff --git a/app/src/views/tool/ToolSettings.vue b/app/src/views/tool/ToolSettings.vue index 54d32981..8cf6dfa6 100644 --- a/app/src/views/tool/ToolSettings.vue +++ b/app/src/views/tool/ToolSettings.vue @@ -48,7 +48,7 @@ export default { api.put( 'settings', { key: id_, args: objectToParams(formatedData) }, - { key: 'tools.update_settings', name: this.name } + { key: 'settings.update', name: this.name } ).then(() => { this.$refs.view.fetchQueries({ triggerLoading: true }) }).catch(err => {