{{message-error model=key}}
{{#unless showAdvancedMode}}
Key
Value
{{/unless}} {{#if capabilities.canUpdate}} {{partial "partials/secret-edit-display"}} {{else}}

Your current token does not have capabilities to update this secret.

{{#secret-link mode=(if key.isFolder "list" "show") secret=key.id class="button" }} Back to {{key.id}} {{/secret-link}}

{{/if}}
{{#unless key.isFolder}} {{#if capabilities.canUpdate}}
{{/if}} {{/unless}}
{{#secret-link mode=(if key.isFolder "list" "show") secret=key.id class="button" }} Cancel {{/secret-link}}
{{#if capabilities.canDelete}} {{#confirm-action buttonClasses="button" onConfirmAction=(action "deleteKey") confirmMessage=(if key.isFolder (concat "Are you sure you want to delete " key.id " and all its contents?") (concat "Are you sure you want to delete " key.id "?") ) cancelButtonText="Cancel" data-test-secret-delete="true" }} {{#if key.isFolder}} Delete folder {{else}} Delete secret {{/if}} {{/confirm-action}} {{/if}}