From 8e97c1c8e4c486744ceacd8ec891b09a4ff557ed Mon Sep 17 00:00:00 2001
From: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
Date: Fri, 10 May 2024 10:50:34 +1000
Subject: [PATCH] [AC-2500] Update inline menu for collections based on
collection permissions (#9080)
* Add view collection options to collection row menus
* Prevent DeleteAnyCollection custom users from viewing collections
---
.../vault-items/vault-cipher-row.component.ts | 2 +-
.../vault-collection-row.component.html | 32 +++++++----
.../vault-collection-row.component.ts | 10 ++--
.../vault-items/vault-item-event.ts | 6 +--
.../vault-items/vault-items.component.html | 8 +--
.../vault-items/vault-items.component.ts | 5 ++
.../vault/core/views/collection-admin.view.ts | 16 ++++++
.../vault/individual-vault/vault.component.ts | 2 +-
.../vault-header/vault-header.component.html | 54 +++++++++++++------
.../vault-header/vault-header.component.ts | 15 ++++--
.../app/vault/org-vault/vault.component.html | 2 +-
.../app/vault/org-vault/vault.component.ts | 8 +--
apps/web/src/locales/en/messages.json | 6 +++
.../src/vault/models/view/collection.view.ts | 7 +++
14 files changed, 126 insertions(+), 47 deletions(-)
diff --git a/apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.ts b/apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.ts
index ea75743a8c..bdb25cae44 100644
--- a/apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.ts
+++ b/apps/web/src/app/vault/components/vault-items/vault-cipher-row.component.ts
@@ -58,7 +58,7 @@ export class VaultCipherRowComponent {
}
protected editCollections() {
- this.onEvent.emit({ type: "viewCollections", item: this.cipher });
+ this.onEvent.emit({ type: "viewCipherCollections", item: this.cipher });
}
protected events() {
diff --git a/apps/web/src/app/vault/components/vault-items/vault-collection-row.component.html b/apps/web/src/app/vault/components/vault-items/vault-collection-row.component.html
index 897d360b4b..7bad783f19 100644
--- a/apps/web/src/app/vault/components/vault-items/vault-collection-row.component.html
+++ b/apps/web/src/app/vault/components/vault-items/vault-collection-row.component.html
@@ -63,7 +63,7 @@
-
-
+
+
+
+
+
+
+
+
|