mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
[PM-24232] - [Defect][Web] Admin Console - SSH key and Folder should not show as options from New button (#15834)
* properly call input functions * don't enable sshkey form * fix logic for disabling cipher form * prefer use of observable * use destroyRef. change to enabled status only
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { Observable } from "rxjs";
|
||||
|
||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||
import { CipherFormConfig } from "@bitwarden/vault";
|
||||
|
||||
@@ -74,4 +76,10 @@ export abstract class CipherFormContainer {
|
||||
abstract disableFormFields(): void;
|
||||
|
||||
abstract enableFormFields(): void;
|
||||
|
||||
/**
|
||||
* An observable that emits when the form status changes to enabled.
|
||||
* This can be used to disable child forms when the parent form is enabled.
|
||||
*/
|
||||
formEnabled$: Observable<void>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user