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;
item.destroyRecord().then(() => {
this.get('flashMessages').success(`${name} was successfully deleted.`);
this.send('reload');
if (type === 'secret') {
return this.transitionToRoute('vault.cluster.secrets.backend.list-root');
}
this.send('reload');
});
},
},

View File

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