1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00

[EC-669] Hide Clone context menu item for items that belong to an organization (#4552)

This commit is contained in:
Shane Melton 2023-01-31 12:57:27 -08:00 committed by GitHub
parent 68839631e5
commit bf1df6ebf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,13 +274,15 @@ export class VaultComponent implements OnInit, OnDestroy {
this.editCipher(cipher);
}),
});
menu.push({
label: this.i18nService.t("clone"),
click: () =>
this.functionWithChangeDetection(() => {
this.cloneCipher(cipher);
}),
});
if (!cipher.organizationId) {
menu.push({
label: this.i18nService.t("clone"),
click: () =>
this.functionWithChangeDetection(() => {
this.cloneCipher(cipher);
}),
});
}
}
switch (cipher.type) {