Skip to content

Commit 0ee7052

Browse files
authored
copy feature in plugin message (#2386)
1 parent 3f2b9b3 commit 0ee7052

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/Frontend/src/components/messages2/SagaDiagram/SagaPluginNeeded.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import NoSagaIcon from "@/assets/NoSaga.svg";
3-
import CopyClipboardIcon from "@/assets/Shell_CopyClipboard.svg";
3+
import CopyToClipboard from "@/components/CopyToClipboard.vue";
44
</script>
55

66
<template>
@@ -12,7 +12,7 @@ import CopyClipboardIcon from "@/assets/Shell_CopyClipboard.svg";
1212
<div class="saga-message-box">
1313
<p class="saga-message-text">To visualize your saga, please install the appropriate nuget package in your endpoint</p>
1414
<a href="https://www.nuget.org/packages/NServiceBus.SagaAudit" class="saga-message-link">install-package NServiceBus.SagaAudit</a>
15-
<img class="saga-message-icon" :src="CopyClipboardIcon" alt="" />
15+
<span class="clippy-button"><CopyToClipboard value="install-package NServiceBus.SagaAudit" :isIconOnly="true" /></span>
1616
</div>
1717
</div>
1818
</div>
@@ -62,9 +62,11 @@ import CopyClipboardIcon from "@/assets/Shell_CopyClipboard.svg";
6262
color: #aaaaaa;
6363
}
6464
65-
.saga-message-icon {
66-
display: inline-block;
67-
margin-left: 0.5rem;
68-
width: 1.5rem;
65+
.clippy-button {
66+
white-space: pre;
67+
}
68+
69+
.clippy-button::before {
70+
content: "\00a0";
6971
}
7072
</style>

0 commit comments

Comments
 (0)