Skip to content

Commit

Permalink
improvement(TestRunInfo.svelte): Add popup hints for copy buttons
Browse files Browse the repository at this point in the history
This commit adds success indicators when user does copy-to-clipboard
actions, making it less confusing.

Fixes scylladb#431
  • Loading branch information
k0machi committed Dec 16, 2024
1 parent 420b826 commit b8a9c6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/TestRun/TestRunInfo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -284,6 +285,7 @@
navigator.clipboard.writeText(
cmd_hydraInvestigateShowMonitor
);
sendMessage("success", `\`${cmd_hydraInvestigateShowMonitor}\` has been copied to your clipboard`);
}}><Fa icon={faCopy} /> Hydra Show Monitor</button
>
<button
Expand All @@ -293,6 +295,7 @@
navigator.clipboard.writeText(
cmd_hydraInvestigateShowLogs
);
sendMessage("success", `\`${cmd_hydraInvestigateShowLogs}\` has been copied to your clipboard`);
}}><Fa icon={faCopy} /> Hydra Show Logs</button
>
{/if}
Expand Down

0 comments on commit b8a9c6c

Please sign in to comment.