From 4a863fbb196a674f173edb1e73a0134764fe82df Mon Sep 17 00:00:00 2001
From: Patrizio Bekerle <patrizio.bekerle@tugraz.at>
Date: Tue, 14 Jul 2020 11:05:51 +0200
Subject: [PATCH] Refactor maxSelectedItems name (#14)

---
 packages/file-handling/src/vpu-nextcloud-file-picker.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/packages/file-handling/src/vpu-nextcloud-file-picker.js b/packages/file-handling/src/vpu-nextcloud-file-picker.js
index c67df633..41493cfe 100644
--- a/packages/file-handling/src/vpu-nextcloud-file-picker.js
+++ b/packages/file-handling/src/vpu-nextcloud-file-picker.js
@@ -30,7 +30,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) {
         this.tabulatorTable = null;
         this.allowedMimeTypes = '*/*';
         this.directoriesOnly = null;
-        this.selectNum = true;
+        this.maxSelectedItems = true;
 
         this._onReceiveWindowMessage = this.onReceiveWindowMessage.bind(this);
     }
@@ -55,7 +55,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) {
             directoryPath: { type: String, attribute: false },
             allowedMimeTypes: { type: String, attribute: 'allowed-mime-types' },
             directoriesOnly: { type: Boolean, attribute: 'directories-only' },
-            selectNum: { type: Number, attribute: 'select-num' },
+            maxSelectedItems: { type: Number, attribute: 'max-selected-items' },
         };
     }
 
@@ -87,7 +87,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) {
             // TODO: translation of column headers
             this.tabulatorTable = new Tabulator(this._("#directory-content-table"), {
                 layout: "fitDataStretch",
-                selectable: this.selectNum,
+                selectable: this.maxSelectedItems,
                 selectableRangeMode: "drag",
                 columns: [
                     {title: "", field: "type", align:"center", formatter: (cell, formatterParams, onRendered) => {
-- 
GitLab