From 04a0e158994d656d1bafe6d4f572694b8fe2d7e1 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 7 Aug 2025 21:44:38 +0800 Subject: [PATCH] feat: Add a copy button to application parameters (#9892) Refs https://github.com/1Panel-dev/1Panel/issues/2998 --- .../views/app-store/installed/detail/index.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/src/views/app-store/installed/detail/index.vue b/frontend/src/views/app-store/installed/detail/index.vue index b017ed5fa..3cde5ff98 100644 --- a/frontend/src/views/app-store/installed/detail/index.vue +++ b/frontend/src/views/app-store/installed/detail/index.vue @@ -30,6 +30,7 @@ {{ param.showValue && param.showValue != '' ? param.showValue : param.value }} + @@ -348,6 +349,23 @@ const updateAppConfig = async () => { } catch (error) {} }; +const showCopyButton = (key: string) => { + const keys = [ + 'PANEL_DB_ROOT_PASSWORD', + 'PANEL_DB_NAME', + 'PANEL_DB_USER', + 'PANEL_DB_USER_PASSWORD', + 'PANEL_REDIS_ROOT_PASSWORD', + 'PANEL_DB_ROOT_USER', + ]; + for (let i = 0; i < keys.length; i++) { + if (key === keys[i]) { + return true; + } + } + return false; +}; + defineExpose({ acceptParams });