mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
[EC-669] Hide Clone context menu item for items that belong to an organization (#4552)
This commit is contained in:
@@ -274,13 +274,15 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
this.editCipher(cipher);
|
this.editCipher(cipher);
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
menu.push({
|
if (!cipher.organizationId) {
|
||||||
label: this.i18nService.t("clone"),
|
menu.push({
|
||||||
click: () =>
|
label: this.i18nService.t("clone"),
|
||||||
this.functionWithChangeDetection(() => {
|
click: () =>
|
||||||
this.cloneCipher(cipher);
|
this.functionWithChangeDetection(() => {
|
||||||
}),
|
this.cloneCipher(cipher);
|
||||||
});
|
}),
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (cipher.type) {
|
switch (cipher.type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user