Merge branch 'main' into feature-more-session-creds

This commit is contained in:
Carlos Alcaide Corvo authored and GitHub committed 2021-06-25 08:33:01 -07:00
commit 0ef4b2244b
4 files changed
+26 -6

No files matched your search

@@ -1,11 +1,9 @@
<div class='hidden-secret'>
{{! TODO: The span wrap within a div because later we will add the toggle secret icon/button}}
<div>
<span>{{t 'resources.target.host-set.secret'}}</span>
</div>
<Copyable
@text={{@secret}}
@buttonText={{t 'actions.copy-to-clipboard'}}
@acknowledgeText={{t 'states.copied'}}
/>
>
<span>{{this.textMask}}</span>
</Copyable>
</div>
@@ -0,0 +1,5 @@
import Component from '@glimmer/component';
export default class HiddenSecretComponent extends Component {
textMask = '■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■';
}
+17
View File
@@ -474,3 +474,20 @@ $chevron-down: url("data:image/svg+xml;utf-8,<svg viewBox='0 0 24 24' fill='%231
color: var(--ui-gray-subtler-1);
}
}
// Hidden secret component (app/components/hidden-secret)
.hidden-secret {
display: flex;
align-items: center;
color: var(--ui-gray-subtler-2);
.copyable {
display: flex;
width: 100%;
justify-content: space-between;
}
.rose-button-ghost {
color: var(--ui-gray-subtler-1);
}
}
@@ -14,7 +14,7 @@ module('Integration | Component | hidden-secret', function (hooks) {
assert.ok(find('.hidden-secret'));
assert.equal(
find('.hidden-secret > div > span').textContent.trim(),
find('.hidden-secret > span > span').textContent.trim(),
'■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■'
);
});