File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
frontend/src/lib/components Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 10
10
import FlowPathViewer from ' ./flows/content/FlowPathViewer.svelte'
11
11
import SchemaViewer from ' ./SchemaViewer.svelte'
12
12
import { scriptPathToHref } from ' $lib/scripts'
13
- import { cleanExpr } from ' $lib/utils'
13
+ import { cleanExpr , copyToClipboard } from ' $lib/utils'
14
14
import { hubBaseUrlStore } from ' $lib/stores'
15
15
16
16
import { twMerge } from ' tailwind-merge'
17
17
import FlowModuleScript from ' ./flows/content/FlowModuleScript.svelte'
18
+ import { Copy } from ' lucide-svelte'
18
19
19
20
export let flow: {
20
21
summary: string
212
213
{/each }
213
214
</div >
214
215
{:else if stepDetail .value .type == ' flow' }
216
+ <div class =" text-sm mb-1 flex justify-end flex-row" >
217
+ <Button
218
+ size =" xs2"
219
+ startIcon ={{ icon : Copy }}
220
+ color =" light"
221
+ on:click ={() => {
222
+ if (typeof stepDetail !== ' string' ) {
223
+ const val = stepDetail ?.value
224
+ if (val ?.type == ' flow' ) {
225
+ copyToClipboard (val .path )
226
+ }
227
+ }
228
+ }}
229
+ >
230
+ Copy path
231
+ </Button >
232
+ </div >
215
233
<FlowPathViewer noSide path ={stepDetail .value .path } />
216
234
{/if }
217
235
{:else }
You can’t perform that action at this time.
0 commit comments