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'), E('br'), E('br'),
this.logArea, this.logArea,
]), ]),
E('div', { 'class': 'right' }, [ E('div', { 'style': 'display:flex; justify-content:space-between; align-items:center; margin-top:1px;' }, [
this.btn_sitescheck, E('div', { 'class': 'left' }, [
' ', this.btn_sitescheck,
this.btn_dpicheck, ' ',
' ', this.btn_dpicheck,
this.btn_cancel, ]),
]) E('div', { 'class': 'right' }, [
' ',
this.btn_cancel,
]),
]),
]); ]);
} }
}); });

View File

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

View File

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