luci: Fix buttons on modal dialogues

This commit is contained in:
remittor
2026-01-31 13:16:44 +03:00
parent 01a1b8801d
commit 60044abbc0
3 changed files with 32 additions and 20 deletions

View File

@@ -158,13 +158,17 @@ return baseclass.extend({
E('br'), E('br'),
this.logArea,
]),
E('div', { 'class': 'right' }, [
this.btn_sitescheck,
' ',
this.btn_dpicheck,
' ',
this.btn_cancel,
])
E('div', { 'style': 'display:flex; justify-content:space-between; align-items:center; margin-top:1px;' }, [
E('div', { 'class': 'left' }, [
this.btn_sitescheck,
' ',
this.btn_dpicheck,
]),
E('div', { 'class': 'right' }, [
' ',
this.btn_cancel,
]),
]),
]);
}
});

View File

@@ -232,6 +232,7 @@ return view.extend({
let cancel_button = E('button', {
'class': btn_style_neutral,
'click': ui.hideModal,
'class': btn_style_warning,
}, _('Cancel'));
let resetcfg_btn = E('button', {
@@ -281,11 +282,14 @@ return view.extend({
nfqws_strat,
E('br'), E('br')
]),
E('div', { 'class': 'right' }, [
cancel_button,
' ',
resetcfg_btn,
])
E('div', { 'style': 'display:flex; justify-content:space-between; align-items:center; margin-top:1px;' }, [
E('div', { 'class': 'left' }, [
resetcfg_btn,
]),
E('div', { 'class': 'right' }, [
cancel_button,
]),
]),
]);
},

View File

@@ -201,13 +201,17 @@ return baseclass.extend({
E('hr'),
this.logArea,
]),
E('div', { 'class': 'right' }, [
this.btn_check,
' ',
this.btn_install,
' ',
this.btn_cancel,
])
E('div', { 'style': 'display:flex; justify-content:space-between; align-items:center; margin-top:1px;' }, [
E('div', { 'class': 'left' }, [
this.btn_check,
' ',
this.btn_install,
]),
E('div', { 'class': 'right' }, [
' ',
this.btn_cancel,
]),
]),
]);
}
},
});