mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
protected loadCollections for add/edit
This commit is contained in:
@@ -136,8 +136,7 @@ export class AddEditComponent implements OnInit {
|
|||||||
this.ownershipOptions.push({ name: o.name, value: o.id });
|
this.ownershipOptions.push({ name: o.name, value: o.id });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const allCollections = await this.collectionService.getAllDecrypted();
|
this.writeableCollections = await this.loadCollections();
|
||||||
this.writeableCollections = allCollections.filter((c) => !c.readOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async load() {
|
async load() {
|
||||||
@@ -350,6 +349,11 @@ export class AddEditComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected async loadCollections() {
|
||||||
|
const allCollections = await this.collectionService.getAllDecrypted();
|
||||||
|
return allCollections.filter((c) => !c.readOnly);
|
||||||
|
}
|
||||||
|
|
||||||
protected loadCipher() {
|
protected loadCipher() {
|
||||||
return this.cipherService.get(this.cipherId);
|
return this.cipherService.get(this.cipherId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user