diff --git a/ui/admin/app/styles/app.scss b/ui/admin/app/styles/app.scss index d0b02c532..45d9b4bdc 100644 --- a/ui/admin/app/styles/app.scss +++ b/ui/admin/app/styles/app.scss @@ -95,12 +95,14 @@ p { margin-bottom: 0; } + .rose-table-header-cell { p { color: var(--ui-gray-subtler-1); font-weight: normal; } } + .rose-form-checkbox { margin-bottom: 0; diff --git a/ui/desktop/app/components/hidden-secret/index.hbs b/ui/desktop/app/components/hidden-secret/index.hbs index a28042fd6..8b5cc1cac 100644 --- a/ui/desktop/app/components/hidden-secret/index.hbs +++ b/ui/desktop/app/components/hidden-secret/index.hbs @@ -1,9 +1,18 @@
+ - {{this.textMask}} + {{#if this.isHidden}} + {{@secret}} + {{else}} + {{this.textMask}} + {{/if}}
\ No newline at end of file diff --git a/ui/desktop/app/components/hidden-secret/index.js b/ui/desktop/app/components/hidden-secret/index.js index f5b443ff2..2541c81fb 100644 --- a/ui/desktop/app/components/hidden-secret/index.js +++ b/ui/desktop/app/components/hidden-secret/index.js @@ -1,5 +1,14 @@ import Component from '@glimmer/component'; +import { action } from '@ember/object'; +import { tracked } from '@glimmer/tracking'; export default class HiddenSecretComponent extends Component { textMask = '■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■'; + + @tracked isHidden = false; + + @action + toggleSecretVisibility() { + this.isHidden = !this.isHidden; + } } diff --git a/ui/desktop/app/styles/app.scss b/ui/desktop/app/styles/app.scss index 6bf7c387e..f65623c56 100644 --- a/ui/desktop/app/styles/app.scss +++ b/ui/desktop/app/styles/app.scss @@ -480,6 +480,11 @@ $chevron-down: url("data:image/svg+xml;utf-8, - {{t + {{t 'form.key.label' }} {{t @@ -102,7 +102,9 @@ {{#each credential.secrets as |secret|}} - {{secret.key}} + {{secret.key}}