{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: BUSL-1.1 }}

{{#if (eq this.mode "create")}} Create Transformation {{else if (eq this.mode "edit")}} Edit Transformation {{else}} Transformation {{this.model.id}} {{/if}}

{{#if (eq this.mode "show")}} {{#if this.model.updatePath.canDelete}} {{#if (gt this.model.allowed_roles.length 0)}}
This transformation is in use by a role and can’t be deleted.
{{else}} {{/if}}
{{/if}} {{#if this.model.updatePath.canUpdate}} {{#if (gt this.model.allowed_roles.length 0)}} {{else}} Edit transformation {{/if}} {{/if}}
{{/if}} {{#if (eq this.mode "edit")}} {{else if (eq this.mode "create")}} {{else}} {{/if}}

Deleting the {{this.model.name}} transformation means that the underlying keys are lost and the data encoded by the transformation are unrecoverable and cannot be decoded.

{{#if this.isEditModalActive}} Edit transformation

You’re editing a transformation that is in use by at least one role. Editing it may mean that encode and decode operations stop working. Are you sure?

{{/if}}