From 5fc10275adc5bb87c4bca10df3d3d06f138c1942 Mon Sep 17 00:00:00 2001 From: Pascal Wengerter Date: Fri, 29 Apr 2022 15:31:33 +0200 Subject: [PATCH] Add quicklink compatibility for oc10, changelog item --- .../enhancement-introduce-quicklink | 6 + .../components/SideBar/PrivateLinkItem.vue | 21 ++- .../components/SideBar/Shares/FileLinks.vue | 3 - .../web-app-files/src/helpers/resources.ts | 8 +- .../SideBar/Links/PrivateLinkItem.spec.js | 77 ---------- .../SideBar/PrivateLinkItem.spec.js | 62 ++++++--- .../Shared/CopyToClipboardButton.spec.js | 130 ----------------- .../SideBar/Shares/Links/NameAndCopy.spec.js | 131 ++++++++++++++++++ .../__snapshots__/NameAndCopy.spec.js.snap | 2 +- .../PrivateLinkItem.spec.js.snap | 7 + 10 files changed, 206 insertions(+), 241 deletions(-) create mode 100644 changelog/unreleased/enhancement-introduce-quicklink delete mode 100644 packages/web-app-files/tests/unit/components/SideBar/Links/PrivateLinkItem.spec.js delete mode 100644 packages/web-app-files/tests/unit/components/SideBar/Shared/CopyToClipboardButton.spec.js create mode 100644 packages/web-app-files/tests/unit/components/SideBar/__snapshots__/PrivateLinkItem.spec.js.snap diff --git a/changelog/unreleased/enhancement-introduce-quicklink b/changelog/unreleased/enhancement-introduce-quicklink new file mode 100644 index 00000000000..b305107365d --- /dev/null +++ b/changelog/unreleased/enhancement-introduce-quicklink @@ -0,0 +1,6 @@ +Enhancement: Introduce quicklinks + +We have added quicklinks to the link share section in the right sidebar. Clicking the link quickaction and the link menu item in the files table contextmenu now always copy the quick link instead of creating a new link (and create it first, if it didn't exist before). + +https://github.com/owncloud/web/pull/6820 +https://github.com/owncloud/web/issues/6605 diff --git a/packages/web-app-files/src/components/SideBar/PrivateLinkItem.vue b/packages/web-app-files/src/components/SideBar/PrivateLinkItem.vue index b1919167bd8..7de1ee3f01b 100644 --- a/packages/web-app-files/src/components/SideBar/PrivateLinkItem.vue +++ b/packages/web-app-files/src/components/SideBar/PrivateLinkItem.vue @@ -1,13 +1,13 @@