From f266cf204817b098937e0d8db9effb6c0184b5e5 Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Tue, 28 Nov 2023 16:32:40 +0100 Subject: [PATCH] refactor: move link role dropdown to a re-usable component --- .../SideBar/Shares/Links/DetailsAndEdit.vue | 149 ++++-------------- .../__snapshots__/DetailsAndEdit.spec.ts.snap | 51 +----- .../src/components/LinkRoleDropdown.vue | 145 +++++++++++++++++ packages/web-pkg/src/components/index.ts | 1 + .../unit/components/LinkRoleDropdown.spec.ts | 62 ++++++++ .../FilesPageElement/publicLinksDialog.js | 2 +- .../support/objects/app-files/link/actions.ts | 4 +- 7 files changed, 246 insertions(+), 168 deletions(-) create mode 100644 packages/web-pkg/src/components/LinkRoleDropdown.vue create mode 100644 packages/web-pkg/tests/unit/components/LinkRoleDropdown.spec.ts diff --git a/packages/web-app-files/src/components/SideBar/Shares/Links/DetailsAndEdit.vue b/packages/web-app-files/src/components/SideBar/Shares/Links/DetailsAndEdit.vue index 24be0e4b18a..9436fe626f2 100644 --- a/packages/web-app-files/src/components/SideBar/Shares/Links/DetailsAndEdit.vue +++ b/packages/web-app-files/src/components/SideBar/Shares/Links/DetailsAndEdit.vue @@ -1,66 +1,12 @@