From 01a7dc58c686815e653f0ddcfc1bd138a9791a46 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 b2e2a8b4..9b3f1e5c 100644 --- a/frontend/TestRun/TestRunInfo.svelte +++ b/frontend/TestRun/TestRunInfo.svelte @@ -15,6 +15,7 @@ import JenkinsBuildModal from "./Jenkins/JenkinsBuildModal.svelte"; import JenkinsCloneModal from "./Jenkins/JenkinsCloneModal.svelte"; import { createEventDispatcher } from "svelte"; + import { sendMessage } from "../Stores/AlertStore"; export let test_run = {}; export let release; export let group; @@ -286,6 +287,7 @@ navigator.clipboard.writeText( cmd_hydraInvestigateShowMonitor ); + sendMessage("success", `\`${cmd_hydraInvestigateShowMonitor}\` has been copied to your clipboard`); }}> Hydra Show Monitor {/if}