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

File sync

parent b6da8a31
No related branches found
No related tags found
No related merge requests found
...@@ -375,7 +375,10 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { ...@@ -375,7 +375,10 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
// on Error: try to reload with home directory // on Error: try to reload with home directory
if ((path !== "/" || path !== "") && this.webDavClient !== null && error.message.search("401") === -1) { if ((path !== "/" || path !== "") && this.webDavClient !== null && error.message.search("401") === -1) {
console.log("error in load directory");
this.directoryPath = "";
this.loadDirectory(""); this.loadDirectory("");
} }
else { else {
this.loading = false; this.loading = false;
......
...@@ -132,6 +132,12 @@ export class FileSink extends ScopedElementsMixin(DBPLitElement) { ...@@ -132,6 +132,12 @@ export class FileSink extends ScopedElementsMixin(DBPLitElement) {
this.openDialog(); this.openDialog();
} }
break; break;
case "nextcloudDefaultDir":
//check if default destination is set
if (this.firstOpen) {
this.nextcloudDir = this.nextcloudDefaultDir;
}
break;
} }
}); });
......
...@@ -111,6 +111,12 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) { ...@@ -111,6 +111,12 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) {
// this.closeDialog(); // this.closeDialog();
} }
break; break;
case "nextcloudDefaultDir":
//check if default destination is set
if (this.firstOpen) {
this.nextcloudDir = this.nextcloudDefaultDir;
}
break;
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment