From 579b2ff1cbcbaa3b825c5a7a90176c00142adfad Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Wed, 25 Jan 2023 14:02:56 +0100 Subject: [PATCH 1/5] Add context menu to groups --- .../enhancement-add-context-menu-to-groups | 6 + .../src/components/Groups/BatchActions.vue | 71 +++++++++++ .../src/components/Groups/ContextActions.vue | 59 ++++++++++ .../components/Groups/DeleteGroupModal.vue | 50 -------- .../src/components/Groups/GroupsList.vue | 109 +++++++++++++++-- .../src/mixins/groups/delete.ts | 111 ++++++++++++++++++ .../src/views/Groups.vue | 81 +++---------- .../components/Groups/BatchActions.spec.ts | 70 +++++++++++ .../components/Groups/ContextActions.spec.ts | 55 +++++++++ .../Groups/DeleteGroupModal.spec.ts | 53 --------- .../unit/components/Groups/GroupsList.spec.ts | 61 ++++++++-- .../tests/unit/views/Groups.spec.ts | 82 ++++--------- 12 files changed, 562 insertions(+), 246 deletions(-) create mode 100644 changelog/unreleased/enhancement-add-context-menu-to-groups create mode 100644 packages/web-app-admin-settings/src/components/Groups/BatchActions.vue create mode 100644 packages/web-app-admin-settings/src/components/Groups/ContextActions.vue delete mode 100644 packages/web-app-admin-settings/src/components/Groups/DeleteGroupModal.vue create mode 100644 packages/web-app-admin-settings/src/mixins/groups/delete.ts create mode 100644 packages/web-app-admin-settings/tests/unit/components/Groups/BatchActions.spec.ts create mode 100644 packages/web-app-admin-settings/tests/unit/components/Groups/ContextActions.spec.ts delete mode 100644 packages/web-app-admin-settings/tests/unit/components/Groups/DeleteGroupModal.spec.ts diff --git a/changelog/unreleased/enhancement-add-context-menu-to-groups b/changelog/unreleased/enhancement-add-context-menu-to-groups new file mode 100644 index 00000000000..3230883adcc --- /dev/null +++ b/changelog/unreleased/enhancement-add-context-menu-to-groups @@ -0,0 +1,6 @@ +Enhancement: Add context menu to groups + +A context menu has been added to the groups management page in the admin settings. It can be toggled via right-click and quick-action. + +https://github.com/owncloud/web/pull/8317 +https://github.com/owncloud/web/issues/8316 diff --git a/packages/web-app-admin-settings/src/components/Groups/BatchActions.vue b/packages/web-app-admin-settings/src/components/Groups/BatchActions.vue new file mode 100644 index 00000000000..cf19bbf8747 --- /dev/null +++ b/packages/web-app-admin-settings/src/components/Groups/BatchActions.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/packages/web-app-admin-settings/src/components/Groups/ContextActions.vue b/packages/web-app-admin-settings/src/components/Groups/ContextActions.vue new file mode 100644 index 00000000000..33d179c9fa6 --- /dev/null +++ b/packages/web-app-admin-settings/src/components/Groups/ContextActions.vue @@ -0,0 +1,59 @@ + + + diff --git a/packages/web-app-admin-settings/src/components/Groups/DeleteGroupModal.vue b/packages/web-app-admin-settings/src/components/Groups/DeleteGroupModal.vue deleted file mode 100644 index 28087cdbb97..00000000000 --- a/packages/web-app-admin-settings/src/components/Groups/DeleteGroupModal.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - diff --git a/packages/web-app-admin-settings/src/components/Groups/GroupsList.vue b/packages/web-app-admin-settings/src/components/Groups/GroupsList.vue index 50d54f43fa9..ab8b501afd6 100644 --- a/packages/web-app-admin-settings/src/components/Groups/GroupsList.vue +++ b/packages/web-app-admin-settings/src/components/Groups/GroupsList.vue @@ -8,7 +8,7 @@ autocomplete="off" />