From b7e4a9c17fc90e55f6b8091f5e4099d40ef54f2f Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 6 Mar 2025 10:32:56 +0100 Subject: [PATCH] luci-base: replace css right class with button-row These were forgotten when refactoring and should also get the css class 'button-row' Signed-off-by: Florian Eckert (cherry picked from commit 959fd4479580ddbe0f86de351d06226027a351a0) --- modules/luci-base/htdocs/luci-static/resources/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index f997093197..b0779d0032 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -4793,7 +4793,7 @@ const UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { E('div', { 'class': 'uci-change-legend-label' }, [ E('var', {}, E('del', ' ')), ' ', _('Option removed') ])]), E('br'), list, - E('div', { 'class': 'right' }, [ //button-row? + E('div', { 'class': 'button-row' }, [ E('button', { 'class': 'btn cbi-button', 'click': UI.prototype.hideModal @@ -4909,7 +4909,7 @@ const UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { UI.prototype.changes.displayStatus('warning', [ E('h4', _('Configuration changes have been rolled back!')), E('p', _('The device could not be reached within %d seconds after applying the pending changes, which caused the configuration to be rolled back for safety reasons. If you believe that the configuration changes are correct nonetheless, perform an unchecked configuration apply. Alternatively, you can dismiss this warning and edit changes before attempting to apply again, or revert all pending changes to keep the currently working configuration state.').format(L.env.apply_rollback)), - E('div', { 'class': 'right' }, [ + E('div', { 'class': 'button-row' }, [ E('button', { 'class': 'btn', 'click': L.bind(UI.prototype.changes.displayStatus, UI.prototype.changes, false) -- 2.30.2