From b8a9c6ccbb224a2e06ff68f522070a71b1d04238 Mon Sep 17 00:00:00 2001 From: Alexey Kartashov Date: Mon, 16 Dec 2024 14:06:54 +0100 Subject: [PATCH] improvement(TestRunInfo.svelte): Add popup hints for copy buttons This commit adds success indicators when user does copy-to-clipboard actions, making it less confusing. Fixes #431 --- frontend/TestRun/TestRunInfo.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/TestRun/TestRunInfo.svelte b/frontend/TestRun/TestRunInfo.svelte index 957121b2..05c9a0e4 100644 --- a/frontend/TestRun/TestRunInfo.svelte +++ b/frontend/TestRun/TestRunInfo.svelte @@ -14,6 +14,7 @@ } from "../Common/RunUtils"; import JenkinsBuildModal from "./Jenkins/JenkinsBuildModal.svelte"; import JenkinsCloneModal from "./Jenkins/JenkinsCloneModal.svelte"; + import { sendMessage } from "../Stores/AlertStore"; export let test_run = {}; export let release; export let group; @@ -284,6 +285,7 @@ navigator.clipboard.writeText( cmd_hydraInvestigateShowMonitor ); + sendMessage("success", `\`${cmd_hydraInvestigateShowMonitor}\` has been copied to your clipboard`); }}> Hydra Show Monitor {/if}