Skip to content

Commit

Permalink
fix: translations of confirm modal
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Apr 21, 2023
1 parent 1511c34 commit f455cf1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nginx-ui-frontend-next",
"private": true,
"version": "1.8.0",
"version": "1.8.1",
"type": "commonjs",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.8.0","build_id":98,"total_build":168}
{"version":"1.8.1","build_id":99,"total_build":169}
2 changes: 2 additions & 0 deletions frontend/src/views/domain/DomainEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/views/domain/cert/components/ObtainCert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/views/domain/ngx_conf/NgxConfigEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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)
})
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.8.0","build_id":98,"total_build":168}
{"version":"1.8.1","build_id":99,"total_build":169}

0 comments on commit f455cf1

Please sign in to comment.