refactor: 💡 move masked text string into component
This commit is contained in:
3 files changed
+6
-3
No files matched your search
@@ -108,5 +108,3 @@ email:
|
||||
label: Email
|
||||
full_name:
|
||||
label: Full Name
|
||||
secret:
|
||||
label: ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■
|
||||
@@ -5,6 +5,6 @@
|
||||
@buttonText={{t 'actions.copy-to-clipboard'}}
|
||||
@acknowledgeText={{t 'states.copied'}}
|
||||
>
|
||||
<span>{{t 'form.secret.label'}}</span>
|
||||
<span>{{this.textMask}}</span>
|
||||
</Copyable>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
import Component from '@glimmer/component';
|
||||
|
||||
export default class HiddenSecretComponent extends Component {
|
||||
textMask = '■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■';
|
||||
}
|
||||
Reference in new issue
Block a user