From f455cf13b8138248bc6bb4ccb6c08c2d43d652cd Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Fri, 21 Apr 2023 11:31:05 +0800 Subject: [PATCH] fix: translations of confirm modal --- frontend/package.json | 2 +- frontend/src/version.json | 2 +- frontend/src/views/domain/DomainEdit.vue | 2 ++ frontend/src/views/domain/cert/components/ObtainCert.vue | 2 ++ frontend/src/views/domain/ngx_conf/NgxConfigEditor.vue | 4 ++++ frontend/version.json | 2 +- 6 files changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 2819a60d..7c8d635a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "nginx-ui-frontend-next", "private": true, - "version": "1.8.0", + "version": "1.8.1", "type": "commonjs", "scripts": { "dev": "vite", diff --git a/frontend/src/version.json b/frontend/src/version.json index 86eee7b9..594c2450 100644 --- a/frontend/src/version.json +++ b/frontend/src/version.json @@ -1 +1 @@ -{"version":"1.8.0","build_id":98,"total_build":168} \ No newline at end of file +{"version":"1.8.1","build_id":99,"total_build":169} \ No newline at end of file diff --git a/frontend/src/views/domain/DomainEdit.vue b/frontend/src/views/domain/DomainEdit.vue index 77bc2a51..0bf377ad 100644 --- a/frontend/src/views/domain/DomainEdit.vue +++ b/frontend/src/views/domain/DomainEdit.vue @@ -172,6 +172,8 @@ function on_change_enabled(checked: boolean) { title: checked ? $gettext('Do you want to enable this site?') : $gettext('Do you want to disable this site?'), mask: false, centered: true, + okText: $gettext('OK'), + cancelText: $gettext('Cancel'), async onOk() { if (checked) { enable() diff --git a/frontend/src/views/domain/cert/components/ObtainCert.vue b/frontend/src/views/domain/cert/components/ObtainCert.vue index c753d29a..d7c91b20 100644 --- a/frontend/src/views/domain/cert/components/ObtainCert.vue +++ b/frontend/src/views/domain/cert/components/ObtainCert.vue @@ -179,6 +179,8 @@ function toggle(status: boolean) { title: $gettext('Do you want to disable auto-cert renewal?'), content: $gettext('We will remove the HTTPChallenge configuration from ' + 'this file and reload the Nginx. Are you sure you want to continue?'), + okText: $gettext('OK'), + cancelText: $gettext('Cancel'), mask: false, centered: true, onOk: () => onchange(false) diff --git a/frontend/src/views/domain/ngx_conf/NgxConfigEditor.vue b/frontend/src/views/domain/ngx_conf/NgxConfigEditor.vue index 6f6318de..8d6b2d5d 100644 --- a/frontend/src/views/domain/ngx_conf/NgxConfigEditor.vue +++ b/frontend/src/views/domain/ngx_conf/NgxConfigEditor.vue @@ -33,6 +33,8 @@ function confirm_change_tls(r: boolean) { 'and we need to save this file and reload the Nginx. Are you sure you want to continue?'), mask: false, centered: true, + okText: $gettext('OK'), + cancelText: $gettext('Cancel'), async onOk() { await template.get_block('letsencrypt.conf').then(r => { const first = props.ngx_config.servers[0] @@ -196,6 +198,8 @@ function remove_server(index: number) { title: $gettext('Do you want to remove this server?'), mask: false, centered: true, + okText: $gettext('OK'), + cancelText: $gettext('Cancel'), onOk: () => props.ngx_config?.servers?.splice(index, 1) }) } diff --git a/frontend/version.json b/frontend/version.json index 86eee7b9..594c2450 100644 --- a/frontend/version.json +++ b/frontend/version.json @@ -1 +1 @@ -{"version":"1.8.0","build_id":98,"total_build":168} \ No newline at end of file +{"version":"1.8.1","build_id":99,"total_build":169} \ No newline at end of file