mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
[AC-2447] Allow the UI to save and close dialog when user removes final Can Manage Collection of an item (#9136)
* update saveCollectionsWithServer to accept a new value if user can no longer manage cipher after requested update
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { BaseResponse } from "../../../models/response/base.response";
|
||||
|
||||
import { CipherResponse } from "./cipher.response";
|
||||
|
||||
export class OptionalCipherResponse extends BaseResponse {
|
||||
unavailable: boolean;
|
||||
cipher?: CipherResponse;
|
||||
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
this.unavailable = this.getResponseProperty("Unavailable");
|
||||
this.cipher = new CipherResponse(this.getResponseProperty("Cipher"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user