Browse Source

fix: translations of confirm modal

0xJacky 2 years ago
parent
commit
f455cf13b8

+ 1 - 1
frontend/package.json

@@ -1,7 +1,7 @@
 {
 {
     "name": "nginx-ui-frontend-next",
     "name": "nginx-ui-frontend-next",
     "private": true,
     "private": true,
-    "version": "1.8.0",
+    "version": "1.8.1",
     "type": "commonjs",
     "type": "commonjs",
     "scripts": {
     "scripts": {
         "dev": "vite",
         "dev": "vite",

+ 1 - 1
frontend/src/version.json

@@ -1 +1 @@
-{"version":"1.8.0","build_id":98,"total_build":168}
+{"version":"1.8.1","build_id":99,"total_build":169}

+ 2 - 0
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?'),
         title: checked ? $gettext('Do you want to enable this site?') : $gettext('Do you want to disable this site?'),
         mask: false,
         mask: false,
         centered: true,
         centered: true,
+        okText: $gettext('OK'),
+        cancelText: $gettext('Cancel'),
         async onOk() {
         async onOk() {
             if (checked) {
             if (checked) {
                 enable()
                 enable()

+ 2 - 0
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?'),
             title: $gettext('Do you want to disable auto-cert renewal?'),
             content: $gettext('We will remove the HTTPChallenge configuration from ' +
             content: $gettext('We will remove the HTTPChallenge configuration from ' +
                 'this file and reload the Nginx. Are you sure you want to continue?'),
                 'this file and reload the Nginx. Are you sure you want to continue?'),
+            okText: $gettext('OK'),
+            cancelText: $gettext('Cancel'),
             mask: false,
             mask: false,
             centered: true,
             centered: true,
             onOk: () => onchange(false)
             onOk: () => onchange(false)

+ 4 - 0
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?'),
             'and we need to save this file and reload the Nginx. Are you sure you want to continue?'),
         mask: false,
         mask: false,
         centered: true,
         centered: true,
+        okText: $gettext('OK'),
+        cancelText: $gettext('Cancel'),
         async onOk() {
         async onOk() {
             await template.get_block('letsencrypt.conf').then(r => {
             await template.get_block('letsencrypt.conf').then(r => {
                 const first = props.ngx_config.servers[0]
                 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?'),
         title: $gettext('Do you want to remove this server?'),
         mask: false,
         mask: false,
         centered: true,
         centered: true,
+        okText: $gettext('OK'),
+        cancelText: $gettext('Cancel'),
         onOk: () => props.ngx_config?.servers?.splice(index, 1)
         onOk: () => props.ngx_config?.servers?.splice(index, 1)
     })
     })
 }
 }

+ 1 - 1
frontend/version.json

@@ -1 +1 @@
-{"version":"1.8.0","build_id":98,"total_build":168}
+{"version":"1.8.1","build_id":99,"total_build":169}