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

Sync filesource and filesink

parent 589b5399
No related branches found
No related tags found
No related merge requests found
Pipeline #16170 passed
......@@ -357,7 +357,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
" </d:prop>" +
"</d:propfind>"})
.then(contents => {
console.log("------", contents);
//console.log("------", contents);
this.loading = false;
this.statusText = "";
this.tabulatorTable.setData(contents.data);
......
......@@ -197,6 +197,9 @@ export class FileSink extends ScopedElementsMixin(DBPLitElement) {
if (this.defaultSink !== '' && this.firstOpen) {
this.activeDestination = this.defaultSink;
this.nextcloudDir = this.nextcloudDefaultDir;
if (this._('#nextcloud-file-picker').webDavClient !== null) {
this._('#nextcloud-file-picker').loadDirectory(this.nextcloudDefaultDir);
}
this.firstOpen = false;
}
}
......
......@@ -350,7 +350,7 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) {
const filePicker = this._('#modal-picker');
// check if element is already in the dom (for example if "dialog-open" attribute is set)
// check if element is already^ in the dom (for example if "dialog-open" attribute is set)
if (filePicker) {
MicroModal.show(filePicker, {
disableScroll: true,
......@@ -364,6 +364,9 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) {
if (this.defaultSink !== '' && this.firstOpen) {
this.activeDestination = this.defaultSink;
this.nextcloudDir = this.nextcloudDefaultDir;
if (this._('#nextcloud-file-picker').webDavClient !== null) {
this._('#nextcloud-file-picker').loadDirectory(this.nextcloudDefaultDir);
}
this.firstOpen = false;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment