Skip to content

Commit

Permalink
Merge pull request #27 from holochain-apps/fix/disable-clipboard-butt…
Browse files Browse the repository at this point in the history
…on-launcher

Fix/disable clipboard button launcher
  • Loading branch information
mattyg authored Aug 6, 2024
2 parents 53ac57a + 42508ea commit 0727f1b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions ui/src/CloneManagerShareDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@
<p>Share this code with a friend to grant them access to the Kando Network <b>{cellName}</b></p>
<sl-textarea rows="2" style="margin-top: 10px;" value={joiningCode}></sl-textarea>
<div style="display: flex; justify-content: flex-end; align-items: center">
<sl-button style="margin-top: 10px;" on:keydown={copyJoiningCode} on:click={copyJoiningCode}>
<div style="display: flex; justify-content: flex-start; align-items: center;">
<SvgIcon icon="faClone" size="16px"/>
<div style="margin-left: 10px;">Copy Joining Code</div>
</div>
</sl-button>
{#if navigator.clipboard !== undefined}
<sl-button style="margin-top: 10px;" on:keydown={copyJoiningCode} on:click={copyJoiningCode}>
<div style="display: flex; justify-content: flex-start; align-items: center;">
<SvgIcon icon="faClone" size="16px"/>
<div style="margin-left: 10px;">Copy Joining Code</div>
</div>
</sl-button>
{/if}
</div>
</div>
</sl-dialog>

0 comments on commit 0727f1b

Please sign in to comment.