From 1a1da4c0d0e2de536e86bc037b01945ade2b0034 Mon Sep 17 00:00:00 2001 From: axolotle Date: Sat, 10 Apr 2021 17:39:20 +0200 Subject: [PATCH] handle validation errors & --force-diskspace --- app/src/api/errors.js | 1 + app/src/components/globals/CardForm.vue | 5 ++- app/src/i18n/locales/en.json | 3 ++ app/src/views/PostInstall.vue | 58 ++++++++++++++++++++----- 4 files changed, 56 insertions(+), 11 deletions(-) diff --git a/app/src/api/errors.js b/app/src/api/errors.js index cbca7c12..f120ac02 100644 --- a/app/src/api/errors.js +++ b/app/src/api/errors.js @@ -47,6 +47,7 @@ class APIBadRequestError extends APIError { constructor (method, response, errorData) { super(method, response, errorData) this.name = 'APIBadRequestError' + this.key = errorData.error_key } } diff --git a/app/src/components/globals/CardForm.vue b/app/src/components/globals/CardForm.vue index 1867f4bd..8debb8a3 100644 --- a/app/src/components/globals/CardForm.vue +++ b/app/src/components/globals/CardForm.vue @@ -10,7 +10,10 @@ - + diff --git a/app/src/i18n/locales/en.json b/app/src/i18n/locales/en.json index 71f20d8a..4e192826 100644 --- a/app/src/i18n/locales/en.json +++ b/app/src/i18n/locales/en.json @@ -314,6 +314,9 @@ "permission_show_tile_enabled": "Visible as tile in user portal", "port": "Port", "ports": "Ports", + "postinstall": { + "force": "Force the post-install" + }, "postinstall_domain": "This is the first domain name linked to your YunoHost server, but also the one which will be used by your server's users to access the authentication portal. Accordingly, it will be visible by everyone, so choose it carefully.", "postinstall_intro_1": "Congratulations! YunoHost has been successfully installed.", "postinstall_intro_2": "Two more configuration steps are required to activate you server's services.", diff --git a/app/src/views/PostInstall.vue b/app/src/views/PostInstall.vue index 4682e30a..4a55c906 100644 --- a/app/src/views/PostInstall.vue +++ b/app/src/views/PostInstall.vue @@ -12,37 +12,57 @@

- + {{ $t('begin') }} + +