mirror of
https://github.com/bitwarden/jslib
synced 2025-12-17 00:33:17 +00:00
Move custom fields to separate components (#489)
* Move add-edit custom fields to own component * Fix linting * Fix change handling if cipherType changes * Removed linked fields work * Move view custom fields to own component * Remove unnecessary imports * Remove old logic from component
This commit is contained in:
@@ -234,18 +234,6 @@ export class ViewComponent implements OnDestroy, OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
async toggleFieldValue(field: FieldView) {
|
||||
if (!await this.promptPassword()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const f = (field as any);
|
||||
f.showValue = !f.showValue;
|
||||
if (f.showValue) {
|
||||
this.eventService.collect(EventType.Cipher_ClientToggledHiddenFieldVisible, this.cipherId);
|
||||
}
|
||||
}
|
||||
|
||||
launch(uri: LoginUriView, cipherId?: string) {
|
||||
if (!uri.canLaunch) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user