File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 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 ;
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
You can’t perform that action at this time.
0 commit comments