-
Notifications
You must be signed in to change notification settings - Fork 0
feat: implement secret filed & copy feature #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
projects/wc/src/app/components/generic-ui/detail-view/detail-view.component.html
Show resolved
Hide resolved
| }) | ||
| export class SecretValueComponent { | ||
| value = input.required<string>(); | ||
| maskedValue = computed(() => '*'.repeat(this.value().length || 8)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or we can always have 8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about this. But then if the value would be toolong when you hover to secret field it will show actual value and cell would shift
| {{ value() }} | ||
| } @else if (displayAsSecret()) { | ||
| <wc-secret-value [value]="value()"></wc-secret-value> | ||
| } @else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here we can have logic all the way down wiht the if else withouth nested if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. Will fix
Uh oh!
There was an error while loading. Please reload this page.