Browse Source

use @if

PM-25693
jaasen-livefront 2 days ago
parent
commit
72a4e54e31
No known key found for this signature in database
  1. 19
      libs/vault/src/cipher-form/components/sshkey-section/sshkey-section.component.html
  2. 1
      libs/vault/src/cipher-form/components/sshkey-section/sshkey-section.component.spec.ts

19
libs/vault/src/cipher-form/components/sshkey-section/sshkey-section.component.html

@ -15,15 +15,16 @@ @@ -15,15 +15,16 @@
data-testid="toggle-privateKey-visibility"
bitPasswordInputToggle
></button>
<button
type="button"
bitIconButton="bwi-import"
bitSuffix
data-testid="import-privateKey"
*ngIf="showImport"
label="{{ 'importSshKeyFromClipboard' | i18n }}"
(click)="importSshKeyFromClipboard()"
></button>
@if (showImport) {
<button
type="button"
bitIconButton="bwi-import"
bitSuffix
data-testid="import-privateKey"
label="{{ 'importSshKeyFromClipboard' | i18n }}"
(click)="importSshKeyFromClipboard()"
></button>
}
</bit-form-field>
<bit-form-field>

1
libs/vault/src/cipher-form/components/sshkey-section/sshkey-section.component.spec.ts

@ -1,4 +1,3 @@ @@ -1,4 +1,3 @@
// sshkey-section.component.spec.ts
import { NO_ERRORS_SCHEMA } from "@angular/core";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { By } from "@angular/platform-browser";

Loading…
Cancel
Save