diff --git a/ui/app/controllers/vault/cluster/secrets/backends.js b/ui/app/controllers/vault/cluster/secrets/backends.js index a24396f7ba57..8c8d7f10c6ad 100644 --- a/ui/app/controllers/vault/cluster/secrets/backends.js +++ b/ui/app/controllers/vault/cluster/secrets/backends.js @@ -17,6 +17,7 @@ export default class VaultClusterSecretsBackendController extends Controller { @tracked secretEngineOptions = []; @tracked selectedEngineType = null; @tracked selectedEngineName = null; + @tracked engineToDisable = null; get sortedDisplayableBackends() { // show supported secret engines first and then organize those by id. @@ -80,6 +81,8 @@ export default class VaultClusterSecretsBackendController extends Controller { this.flashMessages.danger( `There was an error disabling the ${engineType} Secrets Engine at ${path}: ${err.errors.join(' ')}.` ); + } finally { + this.engineToDisable = null; } } } diff --git a/ui/app/templates/vault/cluster/secrets/backends.hbs b/ui/app/templates/vault/cluster/secrets/backends.hbs index 352bc4e5d9bf..5a86dd7e446c 100644 --- a/ui/app/templates/vault/cluster/secrets/backends.hbs +++ b/ui/app/templates/vault/cluster/secrets/backends.hbs @@ -86,28 +86,39 @@ {{/if}} - {{! meatball sandwich menu }}
- - - + + + + {{#if (not-eq backend.type "cubbyhole")}} + + {{/if}} +
-{{/each}} \ No newline at end of file +{{/each}} + +{{#if this.engineToDisable}} + +{{/if}} \ No newline at end of file