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

Small UI bugfixes for mobile versions

parent fa0aaf8b
Branches
No related tags found
No related merge requests found
Pipeline #12758 passed
...@@ -859,8 +859,10 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { ...@@ -859,8 +859,10 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
* *
*/ */
selectAll() { selectAll() {
this.selectAllButton = false;
this.tabulatorTable.selectRow(this.tabulatorTable.getRows().filter(row => row.getData().type != 'directory' && this.checkFileType(row.getData(), this.allowedMimeTypes))); this.tabulatorTable.selectRow(this.tabulatorTable.getRows().filter(row => row.getData().type != 'directory' && this.checkFileType(row.getData(), this.allowedMimeTypes)));
if (this.tabulatorTable.getSelectedRows().length > 0) {
this.selectAllButton = false;
}
} }
/** /**
......
...@@ -155,6 +155,7 @@ export class FileSink extends ScopedElementsMixin(DBPLitElement) { ...@@ -155,6 +155,7 @@ export class FileSink extends ScopedElementsMixin(DBPLitElement) {
console.log("openDialog"); console.log("openDialog");
this.loadWebdavDirectory(); this.loadWebdavDirectory();
MicroModal.show(this._('#modal-picker'), { MicroModal.show(this._('#modal-picker'), {
disableScroll: true,
onClose: modal => { this.isDialogOpen = false; }, onClose: modal => { this.isDialogOpen = false; },
closeTrigger: 'data-custom-close', closeTrigger: 'data-custom-close',
}); });
......
...@@ -321,6 +321,7 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) { ...@@ -321,6 +321,7 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) {
console.log("openDialog"); console.log("openDialog");
this.loadWebdavDirectory(); this.loadWebdavDirectory();
MicroModal.show(this._('#modal-picker'), { MicroModal.show(this._('#modal-picker'), {
disableScroll: true,
onClose: modal => { this.isDialogOpen = false; onClose: modal => { this.isDialogOpen = false;
this._('#nextcloud-file-picker').selectAllButton = true;} this._('#nextcloud-file-picker').selectAllButton = true;}
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment