also send reload in case we're on the root already

This commit is contained in:
Matthew Irish 2018-10-18 11:17:32 -05:00
parent 0754662226
commit 08ef32d332
2 changed files with 3 additions and 1 deletions

View file

@ -69,10 +69,10 @@ export default Controller.extend(BackendCrumbMixin, {
const name = item.id; const name = item.id;
item.destroyRecord().then(() => { item.destroyRecord().then(() => {
this.get('flashMessages').success(`${name} was successfully deleted.`); this.get('flashMessages').success(`${name} was successfully deleted.`);
this.send('reload');
if (type === 'secret') { if (type === 'secret') {
return this.transitionToRoute('vault.cluster.secrets.backend.list-root'); return this.transitionToRoute('vault.cluster.secrets.backend.list-root');
} }
this.send('reload');
}); });
}, },
}, },

View file

@ -52,11 +52,13 @@
Details Details
</SecretLink> </SecretLink>
</li> </li>
{{!-- // will add a link to the history view once it exists
{{#if backendModel.isV2KV}} {{#if backendModel.isV2KV}}
<li class="action"> <li class="action">
Verion History Verion History
</li> </li>
{{/if}} {{/if}}
--}}
{{/if}} {{/if}}
{{#if item.canEdit}} {{#if item.canEdit}}
<li class="action"> <li class="action">