diff --git a/app/src/components/globals/CardForm.vue b/app/src/components/globals/CardForm.vue index 5bf3b128..784851c0 100644 --- a/app/src/components/globals/CardForm.vue +++ b/app/src/components/globals/CardForm.vue @@ -19,10 +19,7 @@ - + {{ submitText ? submitText : $t('save') }} @@ -45,9 +42,6 @@ export default { }, computed: { - disabled () { - return false // this.validation ? this.validation.$invalid : false - }, errorFeedback () { if (this.serverError) return this.serverError else if (this.validation && this.validation.$anyError) { diff --git a/app/src/components/globals/TabForm.vue b/app/src/components/globals/TabForm.vue new file mode 100644 index 00000000..2d8c3d7a --- /dev/null +++ b/app/src/components/globals/TabForm.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/app/src/components/globals/TopBar.vue b/app/src/components/globals/TopBar.vue index a02ecab4..18fb7db2 100644 --- a/app/src/components/globals/TopBar.vue +++ b/app/src/components/globals/TopBar.vue @@ -47,28 +47,29 @@ export default { diff --git a/app/src/helpers/yunohostArguments.js b/app/src/helpers/yunohostArguments.js index 06eb385e..0fc02bbd 100644 --- a/app/src/helpers/yunohostArguments.js +++ b/app/src/helpers/yunohostArguments.js @@ -218,8 +218,7 @@ export function formatYunoHostArgument (arg) { validation.required = validators.required } if (arg.pattern && arg.type !== 'tags') { - // validation.pattern = validators.helpers.withMessage(arg.pattern.error, - validation.pattern = validators.helpers.regex(arg.pattern.error, new RegExp(arg.pattern.regexp)) + validation.pattern = validators.helpers.regex(formatI18nField(arg.pattern.error), new RegExp(arg.pattern.regexp)) } validation.remote = validators.helpers.withParams(error, (v) => { const result = !error.message diff --git a/app/src/views/app/AppConfigPanel.vue b/app/src/views/app/AppConfigPanel.vue index 4df0021e..4983d40f 100644 --- a/app/src/views/app/AppConfigPanel.vue +++ b/app/src/views/app/AppConfigPanel.vue @@ -1,41 +1,32 @@