Supports masking/unmasking sensitive data such as API Tokens in the super admin dashboard. ref: #6322 Co-authored-by: raph941 <45232708+raph941@users.noreply.github.com> Co-authored-by: phunguyenmurcul <51897872+phunguyenmurcul@users.noreply.github.com>
18 lines
549 B
Plaintext
18 lines
549 B
Plaintext
<%#
|
|
# SecretField Index Partial
|
|
%>
|
|
<%= javascript_include_tag "secretField" %>
|
|
<div data-secret-text="<%= field.data %>" class="cell-data__secret-field">
|
|
<span data-secret-masked="true">••••••••••</span>
|
|
<button onclick="toggleSecretField(event)" data-secret-toggler>
|
|
<svg width="20" height="20">
|
|
<use xlink:href="#eye-show" />
|
|
</svg>
|
|
</button>
|
|
<button onclick="copySecretField(event)" data-secret-copier>
|
|
<svg width="20" height="20">
|
|
<use xlink:href="#icon-copy" />
|
|
</svg>
|
|
</button>
|
|
</div>
|