mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 17:53:39 +00:00
[pm-10995] feature flag removal (#11000)
* Removing feature flag * Removing flag from feature-flag.enum.ts * suggested changes * prettier * fixing merge conflict issue * Removing unused code * suggested change from Gbubemi * Adding back merge conflict code * fixing prettier styling
This commit is contained in:
@@ -46,7 +46,6 @@ export class VaultItemsComponent {
|
||||
@Input() viewingOrgVault: boolean;
|
||||
@Input() addAccessStatus: number;
|
||||
@Input() addAccessToggle: boolean;
|
||||
@Input() vaultBulkManagementActionEnabled = false;
|
||||
|
||||
private _ciphers?: CipherView[] = [];
|
||||
@Input() get ciphers(): CipherView[] {
|
||||
@@ -93,23 +92,13 @@ export class VaultItemsComponent {
|
||||
}
|
||||
|
||||
get disableMenu() {
|
||||
return (
|
||||
this.vaultBulkManagementActionEnabled &&
|
||||
!this.bulkMoveAllowed &&
|
||||
!this.showAssignToCollections() &&
|
||||
!this.showDelete()
|
||||
);
|
||||
return !this.bulkMoveAllowed && !this.showAssignToCollections() && !this.showDelete();
|
||||
}
|
||||
|
||||
get bulkAssignToCollectionsAllowed() {
|
||||
return this.showBulkAddToCollections && this.ciphers.length > 0;
|
||||
}
|
||||
|
||||
// Use new bulk management delete if vaultBulkManagementActionEnabled feature flag is enabled
|
||||
get deleteAllowed() {
|
||||
return this.vaultBulkManagementActionEnabled ? this.showDelete() : true;
|
||||
}
|
||||
|
||||
protected canEditCollection(collection: CollectionView): boolean {
|
||||
// Only allow allow deletion if collection editing is enabled and not deleting "Unassigned"
|
||||
if (collection.id === Unassigned) {
|
||||
@@ -156,15 +145,6 @@ export class VaultItemsComponent {
|
||||
});
|
||||
}
|
||||
|
||||
protected bulkMoveToOrganization() {
|
||||
this.event({
|
||||
type: "moveToOrganization",
|
||||
items: this.selection.selected
|
||||
.filter((item) => item.cipher !== undefined)
|
||||
.map((item) => item.cipher),
|
||||
});
|
||||
}
|
||||
|
||||
protected bulkRestore() {
|
||||
this.event({
|
||||
type: "restore",
|
||||
|
||||
Reference in New Issue
Block a user