mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
[PM-21569] - sshkey view - replace bit-card with read-only-cipher-card (#14811)
* use replace bit-card with read-only-cipher-card * remove unnecessary class
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<bit-section-header>
|
<bit-section-header>
|
||||||
<h2 bitTypography="h6">{{ "typeSshKey" | i18n }}</h2>
|
<h2 bitTypography="h6">{{ "typeSshKey" | i18n }}</h2>
|
||||||
</bit-section-header>
|
</bit-section-header>
|
||||||
<bit-card class="[&_bit-form-field:last-of-type]:tw-mb-0">
|
<read-only-cipher-card>
|
||||||
<bit-form-field>
|
<bit-form-field>
|
||||||
<bit-label>{{ "sshPrivateKey" | i18n }}</bit-label>
|
<bit-label>{{ "sshPrivateKey" | i18n }}</bit-label>
|
||||||
<input
|
<input
|
||||||
@@ -65,5 +65,5 @@
|
|||||||
[appA11yTitle]="'copyValue' | i18n"
|
[appA11yTitle]="'copyValue' | i18n"
|
||||||
></button>
|
></button>
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
</bit-card>
|
</read-only-cipher-card>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -6,13 +6,14 @@ import { Component, Input } from "@angular/core";
|
|||||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||||
import { SshKeyView } from "@bitwarden/common/vault/models/view/ssh-key.view";
|
import { SshKeyView } from "@bitwarden/common/vault/models/view/ssh-key.view";
|
||||||
import {
|
import {
|
||||||
CardComponent,
|
|
||||||
SectionHeaderComponent,
|
SectionHeaderComponent,
|
||||||
TypographyModule,
|
TypographyModule,
|
||||||
FormFieldModule,
|
FormFieldModule,
|
||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
|
|
||||||
|
import { ReadOnlyCipherCardComponent } from "../read-only-cipher-card/read-only-cipher-card.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-sshkey-view",
|
selector: "app-sshkey-view",
|
||||||
templateUrl: "sshkey-view.component.html",
|
templateUrl: "sshkey-view.component.html",
|
||||||
@@ -20,8 +21,8 @@ import {
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
JslibModule,
|
JslibModule,
|
||||||
CardComponent,
|
|
||||||
SectionHeaderComponent,
|
SectionHeaderComponent,
|
||||||
|
ReadOnlyCipherCardComponent,
|
||||||
TypographyModule,
|
TypographyModule,
|
||||||
FormFieldModule,
|
FormFieldModule,
|
||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
|
|||||||
Reference in New Issue
Block a user