Skip to content
Snippets Groups Projects
Commit 21894591 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Small bugfix for file-handling

parent 8a81d4be
No related branches found
No related tags found
No related merge requests found
Pipeline #51966 passed
...@@ -251,6 +251,7 @@ export class FileSink extends ScopedElementsMixin(DbpFileHandlingLitElement) { ...@@ -251,6 +251,7 @@ export class FileSink extends ScopedElementsMixin(DbpFileHandlingLitElement) {
const filePicker = this._('#clipboard-file-picker'); const filePicker = this._('#clipboard-file-picker');
if (filePicker && filePicker.tabulatorTable) { if (filePicker && filePicker.tabulatorTable) {
filePicker.tabulatorTable.deselectRow(); filePicker.tabulatorTable.deselectRow();
filePicker.numberOfSelectedFiles = 0;
if (filePicker._('#select_all')) { if (filePicker._('#select_all')) {
filePicker._("#select_all").checked = false; filePicker._("#select_all").checked = false;
} }
......
...@@ -443,6 +443,7 @@ export class FileSource extends ScopedElementsMixin(DbpFileHandlingLitElement) { ...@@ -443,6 +443,7 @@ export class FileSource extends ScopedElementsMixin(DbpFileHandlingLitElement) {
if (this.enabledTargets.includes('clipboard')) { if (this.enabledTargets.includes('clipboard')) {
const filePicker = this._('#clipboard-file-picker'); const filePicker = this._('#clipboard-file-picker');
if (filePicker && filePicker.tabulatorTable) { if (filePicker && filePicker.tabulatorTable) {
filePicker.numberOfSelectedFiles = 0;
filePicker.tabulatorTable.deselectRow(); filePicker.tabulatorTable.deselectRow();
if (filePicker._('#select_all')) { if (filePicker._('#select_all')) {
filePicker._("#select_all").checked = false; filePicker._("#select_all").checked = false;
......
...@@ -258,7 +258,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { ...@@ -258,7 +258,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
} else { } else {
this.folderIsSelected = i18n.t('nextcloud-file-picker.load-in-folder'); this.folderIsSelected = i18n.t('nextcloud-file-picker.load-in-folder');
} }
if (this.tabulatorTable && this.tabulatorTable.getSelectedRows().filter(row => row.getData().type != 'directory' && this.checkFileType(row.getData(), this.allowedMimeTypes)).length > 0) { if (!this.directoriesOnly && this.tabulatorTable && this.tabulatorTable.getSelectedRows().filter(row => row.getData().type != 'directory' && this.checkFileType(row.getData(), this.allowedMimeTypes)).length > 0) {
this.selectBtnDisabled = false; this.selectBtnDisabled = false;
} else { } else {
this.selectBtnDisabled = true; this.selectBtnDisabled = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment