From b6f0083b4833cd63838df1a662fcd01bd47af756 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle <patrizio@bekerle.com> Date: Wed, 13 Jan 2021 10:11:19 +0100 Subject: [PATCH] Integrate this.getProperties (dbp/apps/signature#32) --- packages/file-handling/src/dbp-nextcloud-file-picker.js | 4 ++-- packages/file-handling/src/file-sink.js | 4 ++-- packages/file-handling/src/file-source.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/file-handling/src/dbp-nextcloud-file-picker.js b/packages/file-handling/src/dbp-nextcloud-file-picker.js index 73fdf9ba..0a7e5da6 100644 --- a/packages/file-handling/src/dbp-nextcloud-file-picker.js +++ b/packages/file-handling/src/dbp-nextcloud-file-picker.js @@ -64,7 +64,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { * See: https://lit-element.polymer-project.org/guide/properties#initialize */ static get properties() { - return { + return this.getProperties({ lang: { type: String }, authUrl: { type: String, attribute: 'auth-url' }, webDavUrl: { type: String, attribute: 'web-dav-url' }, @@ -84,7 +84,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { activeDirectoryACL: { type: String, attribute: false }, selectAllButton: { type: Boolean, attribute: false }, abortUploadButton: { type: Boolean, attribute: false }, - }; + }); } update(changedProperties) { diff --git a/packages/file-handling/src/file-sink.js b/packages/file-handling/src/file-sink.js index 3af358ae..90875ee6 100644 --- a/packages/file-handling/src/file-sink.js +++ b/packages/file-handling/src/file-sink.js @@ -45,7 +45,7 @@ export class FileSink extends ScopedElementsMixin(DBPLitElement) { * See: https://lit-element.polymer-project.org/guide/properties#initialize */ static get properties() { - return { + return this.getProperties({ context: { type: String, attribute: 'context'}, lang: { type: String }, filename: { type: String }, @@ -58,7 +58,7 @@ export class FileSink extends ScopedElementsMixin(DBPLitElement) { buttonLabel: { type: String, attribute: 'button-label' }, isDialogOpen: { type: Boolean, attribute: false }, activeDestination: { type: Boolean, attribute: false }, - }; + }); } async downloadCompressedFiles() { diff --git a/packages/file-handling/src/file-source.js b/packages/file-handling/src/file-source.js index bee797dd..f9e93def 100644 --- a/packages/file-handling/src/file-source.js +++ b/packages/file-handling/src/file-source.js @@ -63,7 +63,7 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) { * See: https://lit-element.polymer-project.org/guide/properties#initialize */ static get properties() { - return { + return this.getProperties({ context: { type: String, attribute: 'context'}, lang: { type: String }, allowedMimeTypes: { type: String, attribute: 'allowed-mime-types' }, @@ -77,7 +77,7 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) { decompressZip: { type: Boolean, attribute: 'decompress-zip' }, activeSource: { type: Boolean, attribute: false }, isDialogOpen: { type: Boolean, attribute: 'dialog-open' }, - }; + }); } update(changedProperties) { -- GitLab