Merge remote-tracking branch 'origin/feature-session-creds' into connect-dialog-based-on-feature-session-creds
This commit is contained in:
5 files changed
+46
No files matched your search
@@ -266,3 +266,4 @@ target:
|
||||
add:
|
||||
title: Add Host Sets
|
||||
description: Select host sets to assign to this target.
|
||||
secret: ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■
|
||||
@@ -0,0 +1,11 @@
|
||||
<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'}}
|
||||
/>
|
||||
</div>
|
||||
@@ -463,3 +463,14 @@ $chevron-down: url("data:image/svg+xml;utf-8,<svg viewBox='0 0 24 24' fill='%231
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
.hidden-secret {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
color: var(--ui-gray-subtler-2);
|
||||
|
||||
.rose-button-ghost {
|
||||
color: var(--ui-gray-subtler-1);
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
{{! template-lint-disable no-bare-strings }}
|
||||
|
||||
{{page-title (t 'resources.target.title_plural')}}
|
||||
|
||||
{{#each @model as |target|}}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupRenderingTest } from 'ember-qunit';
|
||||
import { render, find } from '@ember/test-helpers';
|
||||
import { hbs } from 'ember-cli-htmlbars';
|
||||
|
||||
module('Integration | Component | hidden-secret', function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test('it renders with a secret', async function (assert) {
|
||||
assert.expect(2);
|
||||
await render(hbs`
|
||||
<HiddenSecret @secret='AAaaBBccDDeeOTXzSMT1234BB_Z8JzG7JkSVxI' />
|
||||
`);
|
||||
|
||||
assert.ok(find('.hidden-secret'));
|
||||
assert.equal(
|
||||
find('.hidden-secret > div > span').textContent.trim(),
|
||||
'■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■'
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user