From 60ff5ad3f1ceb51cf9a80d4eed07652463a09849 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Wed, 31 Dec 2025 11:55:54 +0100 Subject: [PATCH] feat(secubox): add close button to app details modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added a modal footer with a Close button in the app details view. The footer includes: - Styled separator line with border-top - Right-aligned Close button - Calls ui.hideModal() on click This provides a clear way to dismiss the modal without needing to click outside or use the escape key. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .../htdocs/luci-static/resources/view/secubox/apps.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/luci-app-secubox/htdocs/luci-static/resources/view/secubox/apps.js b/luci-app-secubox/htdocs/luci-static/resources/view/secubox/apps.js index 63a8e3d0..7b100b72 100644 --- a/luci-app-secubox/htdocs/luci-static/resources/view/secubox/apps.js +++ b/luci-app-secubox/htdocs/luci-static/resources/view/secubox/apps.js @@ -383,6 +383,14 @@ return view.extend({ 'class': 'btn btn-link' }, _('Visit Project Website →')) ]) : null + ]), + E('div', { 'class': 'modal-footer', 'style': 'margin-top: 1.5em; padding-top: 1em; border-top: 1px solid rgba(255,255,255,0.1); text-align: right;' }, [ + E('button', { + 'class': 'btn btn-primary', + 'click': function() { + ui.hideModal(); + } + }, _('Close')) ]) ]);