1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

[PM-22377] - [Vault] [Clients] Update cipher form component to restrict editing old My Vault items (#15687)

* disable cipher form for "My Items" ciphers

* use correct property

* prevent changing non org fields in cli for org owned vaults

* update var name

* fix tests

* fix stories

* revert changes to item details section. update comment in edit command

* remove unused props

* fix test

* re-apply logic to enforce org ownership

* re-apply logic to enforce org ownership

* fix logic and test

* add empty line to comment

* remove unused var

* delegate form enabling/disabling to cipherFormContainer

* rename var and getter back to original. update comment
This commit is contained in:
Jordan Aasen
2025-07-24 10:59:29 -07:00
committed by GitHub
parent cd33ea0747
commit 7b85870e58
8 changed files with 81 additions and 19 deletions

View File

@@ -150,6 +150,14 @@ export class CipherFormComponent implements AfterViewInit, OnInit, OnChanges, Ci
}
}
disableFormFields(): void {
this.cipherForm.disable({ emitEvent: false });
}
enableFormFields(): void {
this.cipherForm.enable({ emitEvent: false });
}
/**
* Registers a child form group with the parent form group. Used by child components to add their form groups to
* the parent form for validation.