mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
Transit Active Tab (#25614)
* fixes issue with no active tab in transit show route * adds changelog * updates test assertion
This commit is contained in:
parent
15238e3819
commit
d4706b5318
4 changed files with 16 additions and 3 deletions
3
changelog/25614.txt
Normal file
3
changelog/25614.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
ui: Fixes issue with no active tab when viewing transit encryption key
|
||||
```
|
||||
|
|
@ -80,7 +80,7 @@ export default Component.extend(FocusOnInsertMixin, {
|
|||
'save',
|
||||
() => {
|
||||
this.hasDataChanges();
|
||||
this.transitionToRoute(SHOW_ROUTE, keyId);
|
||||
this.transitionToRoute(SHOW_ROUTE, keyId, { queryParams: { tab: 'details' } });
|
||||
},
|
||||
type === 'create'
|
||||
);
|
||||
|
|
|
|||
|
|
@ -100,7 +100,13 @@
|
|||
</div>
|
||||
{{/if}}
|
||||
<div class="control">
|
||||
<Hds::Button @text="Cancel" @color="secondary" @route="vault.cluster.secrets.backend.show" @model={{@key.id}} />
|
||||
<Hds::Button
|
||||
@text="Cancel"
|
||||
@color="secondary"
|
||||
@route="vault.cluster.secrets.backend.show"
|
||||
@model={{@key.id}}
|
||||
@query={{hash tab="details"}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
{{#if (and @key.canDelete @capabilities.canDelete)}}
|
||||
|
|
|
|||
|
|
@ -237,7 +237,11 @@ module('Acceptance | transit (flaky)', function (hooks) {
|
|||
await click('[data-test-toggle-label="Auto-rotation period"]');
|
||||
await click(SELECTORS.form('create'));
|
||||
|
||||
assert.strictEqual(currentURL(), `/vault/secrets/${this.path}/show/${name}`, 'it navigates to show page');
|
||||
assert.strictEqual(
|
||||
currentURL(),
|
||||
`/vault/secrets/${this.path}/show/${name}?tab=details`,
|
||||
'it navigates to show page'
|
||||
);
|
||||
assert.dom(SELECTORS.infoRow('Auto-rotation period')).hasText('30 days');
|
||||
assert.dom(SELECTORS.infoRow('Deletion allowed')).hasText('false');
|
||||
assert.dom(SELECTORS.infoRow('Derived')).hasText('Yes');
|
||||
|
|
|
|||
Loading…
Reference in a new issue