Skip to content

Commit

Permalink
Simplify attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpflanzer committed Jul 5, 2024
1 parent 77dc365 commit 8663321
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ui/app/templates/components/generate-credentials-totp.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
@color="secondary"
@route="vault.cluster.secrets.backend.list-root"
@model={{this.backendPath}}
data-test-secret-generate-back={{true}}
data-test-secret-generate-back
/>
</div>
</div>
</div>
7 changes: 3 additions & 4 deletions ui/app/templates/components/totp-edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/>
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-secret-header="true">
<h1 class="title is-3" data-test-secret-header>
{{#if (eq this.mode "create")}}
Create a TOTP key
{{else if (eq this.mode "edit")}}
Expand All @@ -40,7 +40,7 @@
<div class="toolbar-separator"></div>
{{/if}}
{{#if this.model.canUpdate}}
<ToolbarSecretLink @secret={{this.model.id}} @mode="edit" data-test-edit-link={{true}} @replace={{true}}>
<ToolbarSecretLink @secret={{this.model.id}} @mode="edit" data-test-edit-link @replace={{true}}>
Edit key
</ToolbarSecretLink>
{{/if}}
Expand Down Expand Up @@ -92,7 +92,6 @@
{{#if (eq this.mode "create")}}
{{#each this.model.createAttrs as |attr|}}
<FormField
data-test-field={{true}}
@attr={{attr}}
@model={{this.model}}
@modelValidations={{@modelValidations}}
Expand Down Expand Up @@ -134,4 +133,4 @@
/>
{{/each}}
</div>
{{/if}}
{{/if}}

0 comments on commit 8663321

Please sign in to comment.