From 9bcb402fa2e34b4d9ce3703b81ba0cea669e0664 Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Date: Mon, 12 Jul 2021 09:46:56 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Refactor=20details=20of?= =?UTF-8?q?=20the=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Delete unnecessary . Make icon smaller and aligned. Fix linting issues. --- ui/admin/app/styles/app.scss | 2 ++ .../app/components/hidden-secret/index.hbs | 16 +++++++--------- ui/desktop/app/components/hidden-secret/index.js | 4 ++-- ui/desktop/app/styles/app.scss | 1 + 4 files changed, 12 insertions(+), 11 deletions(-) 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 aacb6d165..8b5cc1cac 100644 --- a/ui/desktop/app/components/hidden-secret/index.hbs +++ b/ui/desktop/app/components/hidden-secret/index.hbs @@ -1,7 +1,7 @@
- - {{#if this.secretVisible}} - {{@secret}} - {{else}} - {{this.textMask}} - {{/if}} - + {{#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 6894d79d1..2541c81fb 100644 --- a/ui/desktop/app/components/hidden-secret/index.js +++ b/ui/desktop/app/components/hidden-secret/index.js @@ -5,10 +5,10 @@ import { tracked } from '@glimmer/tracking'; export default class HiddenSecretComponent extends Component { textMask = '■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■'; - @tracked secretVisible = false; + @tracked isHidden = false; @action toggleSecretVisibility() { - this.secretVisible = !this.secretVisible; + this.isHidden = !this.isHidden; } } diff --git a/ui/desktop/app/styles/app.scss b/ui/desktop/app/styles/app.scss index ad090994c..f65623c56 100644 --- a/ui/desktop/app/styles/app.scss +++ b/ui/desktop/app/styles/app.scss @@ -481,6 +481,7 @@ $chevron-down: url("data:image/svg+xml;utf-8,