From c99cef9f274d45605fa4774cf907b657ab2876cb Mon Sep 17 00:00:00 2001 From: Ivan K Date: Wed, 14 May 2025 14:30:52 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style(podkop):=20update=20modal?= =?UTF-8?q?=20button=20titles=20and=20clipboard=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../htdocs/luci-static/resources/view/podkop/podkop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js index 6b04667..ccbedb6 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js @@ -676,7 +676,7 @@ const showConfigModal = async (command, title) => { E('button', { 'class': 'btn', 'id': 'copy-button', - 'click': ev => copyToClipboard(document.getElementById('modal-content-pre').innerText, ev.target) + 'click': ev => copyToClipboard('```txt\n' + document.getElementById('modal-content-pre').innerText + '\n```', ev.target) }, _('Copy to Clipboard')), E('button', { 'class': 'btn', @@ -842,7 +842,7 @@ const createStatusPanel = (title, status, buttons, extraData = {}) => { ButtonFactory.createModalButton({ label: E('strong', _('Global check')), command: 'global_check', - title: _('Click here for all the info') + title: _('Global check') }), ButtonFactory.createModalButton({ label: 'View Logs',