From 2cf9c787e7062a54e54838d1b18f1f7e2e4b12d1 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 18 Oct 2022 20:00:51 +0200 Subject: [PATCH] app install: support 'group' question + tweak label question --- app/src/helpers/yunohostArguments.js | 2 +- app/src/i18n/locales/en.json | 4 +++- app/src/views/app/AppInstall.vue | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/helpers/yunohostArguments.js b/app/src/helpers/yunohostArguments.js index 0ba1d683..c0e52613 100644 --- a/app/src/helpers/yunohostArguments.js +++ b/app/src/helpers/yunohostArguments.js @@ -166,7 +166,7 @@ export function formatYunoHostArgument (arg) { } }, { - types: ['select', 'user', 'domain', 'app'], + types: ['select', 'user', 'domain', 'app', 'group'], name: 'SelectItem', props: ['id:name', 'choices'], callback: function () { diff --git a/app/src/i18n/locales/en.json b/app/src/i18n/locales/en.json index 4d9a36a9..549a74e4 100644 --- a/app/src/i18n/locales/en.json +++ b/app/src/i18n/locales/en.json @@ -312,7 +312,8 @@ "items_verbose_count": "There are {items}. | There is 1 {items}. | There are {items}.", "items_verbose_items_left": "There are {items} left. | There is 1 {items} left. | There are {items} left.", "label": "Label", - "label_for_manifestname": "Label for {name} (name displayed in the user portal)", + "label_for_manifestname": "Label for {name}", + "label_for_manifestname_help": "This is the name displayed in the user portal. This can be changed later.", "last_ran": "Last time ran:", "license": "License", "local_archives": "Local archives", @@ -324,6 +325,7 @@ "manage_apps": "Manage apps", "manage_domains": "Manage domains", "manage_users": "Manage users", + "manage_groups": "Manage groups", "migrations": "Migrations", "migrations_pending": "Pending migrations", "migrations_done": "Previous migrations", diff --git a/app/src/views/app/AppInstall.vue b/app/src/views/app/AppInstall.vue index 9f5ce862..8af0d9c0 100644 --- a/app/src/views/app/AppInstall.vue +++ b/app/src/views/app/AppInstall.vue @@ -90,7 +90,8 @@ export default { manifest.install.unshift({ ask: this.$t('label_for_manifestname', { name: manifest.name }), default: manifest.name, - name: 'label' + name: 'label', + help: this.$t('label_for_manifestname_help') }) const {