refactor: 💡 move masked text string into component

This commit is contained in:
Randall Morey committed 2021-06-25 11:15:04 -04:00
1 parent 04287e72c2
commit 7e2493dd82
3 files changed
+6 -3

No files matched your search

-2
View File
@@ -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 = '■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■';
}