Skip to content

Commit e16a235

Browse files
committed
💄 Always allow show token
1 parent e61cd9a commit e16a235

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

assets/svelte/settings/AccountSettings.svelte

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
$: renameDisabled = selectedAccount.name === form.name;
9595
9696
let showTokens: { [key: string]: boolean } = {};
97-
let clipboardSupported = navigator.clipboard && navigator.clipboard.writeText;
9897
9998
function openInviteMemberDialog() {
10099
showInviteMember = true;
@@ -608,21 +607,21 @@
608607
{#if showTokens[token.id]}
609608
{token.token}
610609
{:else}
611-
{token.token.slice(0, 4)}*****{token.token.slice(-4)}
610+
{"*".repeat(token.token.length - 8)}{token.token.slice(
611+
-8,
612+
)}
612613
{/if}
613614
<CopyIcon
614615
content={token.token}
615616
class="hover:text-gray-700 hover:bg-gray-100 rounded-md p-2"
616617
/>
617-
{#if !clipboardSupported}
618-
<button
619-
class="hover:text-gray-700 hover:bg-gray-100 rounded-md p-2"
620-
on:click={() =>
621-
(showTokens[token.id] = !showTokens[token.id])}
622-
>
623-
<Eye class="h-4 w-4" />
624-
</button>
625-
{/if}
618+
<button
619+
class="hover:text-gray-700 hover:bg-gray-100 rounded-md p-2"
620+
on:click={() =>
621+
(showTokens[token.id] = !showTokens[token.id])}
622+
>
623+
<Eye class="h-4 w-4" />
624+
</button>
626625
</div>
627626
</Table.Cell>
628627
<Table.Cell

0 commit comments

Comments
 (0)