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 19, 2024
1 parent 00074a8 commit 01a7dc5
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 @@ -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;
Expand Down Expand Up @@ -286,6 +287,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 @@ -295,6 +297,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 01a7dc5

Please sign in to comment.