From e6bc9275f9a64f0181c73fc106d3ed98fcbbba22 Mon Sep 17 00:00:00 2001 From: Tamara Steinwender <tamara.steinwender@tugraz.at> Date: Tue, 13 Jul 2021 15:07:37 +0200 Subject: [PATCH] Change show-clipboard attribute to file-handling-enabled-targets attribute --- packages/file-handling/src/clipboard.js | 2 -- toolkit-showcase/assets/file-handling.metadata.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/file-handling/src/clipboard.js b/packages/file-handling/src/clipboard.js index 7686d6ab..14c51912 100644 --- a/packages/file-handling/src/clipboard.js +++ b/packages/file-handling/src/clipboard.js @@ -618,7 +618,6 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) { lang="${this.lang}" text="${i18n.t('clipboard.upload-area-text')}" button-label="${i18n.t('clipboard.upload-button-label')}" - show-clipboard @dbp-file-source-file-selected="${this.saveFilesToClipboardEvent}" @dbp-nextcloud-file-picker-number-files="${this.finishedSaveFilesToClipboard}" @dbp-file-source-file-upload-finished="${this.finishedSaveFilesToClipboard}" @@ -628,7 +627,6 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) { filename="clipboard-documents.zip" allowed-mime-types="${this.allowedMimeTypes}" enabled-targets="${this.allowNesting ? this.enabledTargets : this.enabledTargets.replace('clipboard', '')}" - show-clipboard nextcloud-auth-url="${this.nextcloudWebAppPasswordURL}" nextcloud-web-dav-url="${this.nextcloudWebDavURL}" nextcloud-name="${this.nextcloudName}" diff --git a/toolkit-showcase/assets/file-handling.metadata.json b/toolkit-showcase/assets/file-handling.metadata.json index 044c5478..c9f3f735 100644 --- a/toolkit-showcase/assets/file-handling.metadata.json +++ b/toolkit-showcase/assets/file-handling.metadata.json @@ -14,5 +14,5 @@ "de": "Web Komponenten für file sink und file source. Für mehrere verschiedenen Quellen.", "en": "Web components for file sink and file source. For several different sources." }, - "subscribe": "lang,entry-point-url,nextcloud-auth-url:nextcloud-auth-url,nextcloud-web-dav-url:nextcloud-web-dav-url,nextcloud-name:nextcloud-name,nextcloud-file-url:nextcloud-file-url,show-nextcloud-file-picker:show-nextcloud-file-picker" + "subscribe": "lang,entry-point-url,nextcloud-auth-url:nextcloud-auth-url,nextcloud-web-dav-url:nextcloud-web-dav-url,nextcloud-name:nextcloud-name,nextcloud-file-url:nextcloud-file-url,file-handling-enabled-targets" } -- GitLab