Skip to content

Commit

Permalink
Disable copy password button until password is generated
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik99999 committed Apr 8, 2024
1 parent 55b4909 commit 9cb63d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/(rtdx)/PasswordImage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

<div class="text-center">
<canvas style="background: url('{base}/rtdx-password/{type}.png') 100% 100% / 100% no-repeat;" bind:this={canvas} id="password" width="967" height="254" />
<button id="copy-button" class="btn btn-secondary" data-toggle="tooltip" data-trigger="manual" title="Copied!" on:click={copyPassword}>Copy Password Text</button>
<button id="copy-button" class="btn btn-secondary" data-toggle="tooltip" data-trigger="manual" title="Copied!" on:click={copyPassword} disabled={!password}>Copy Password Text</button>
</div>

<style>
Expand Down

0 comments on commit 9cb63d5

Please sign in to comment.