diff --git a/packages/file-handling/src/dbp-nextcloud-file-picker.js b/packages/file-handling/src/dbp-nextcloud-file-picker.js index aff565ddd2d509983398a83625ac2b61070441a4..aa913b2da369effccc44aa0ea41eb5f8b70945d3 100644 --- a/packages/file-handling/src/dbp-nextcloud-file-picker.js +++ b/packages/file-handling/src/dbp-nextcloud-file-picker.js @@ -286,10 +286,10 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { const authUrl = this.authUrl + "?target-origin=" + encodeURIComponent(window.location.href); this.loginWindow = window.open(authUrl, "Nextcloud Login", "width=400,height=400,menubar=no,scrollbars=no,status=no,titlebar=no,toolbar=no"); - } - else { + console.log("open nextcloud filepicker, no webdavclient"); + } else { this.loadDirectory(this.directoryPath, this.webDavClient); - + console.log("load in nextcloud webcomponent"); } } @@ -322,6 +322,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { * @param path */ loadDirectory(path) { + console.log("load nextcloud directory", path); this.selectAllButton = true; this.loading = true; this.statusText = i18n.t('nextcloud-file-picker.loadpath-nextcloud-file-picker', {name: this.nextcloudName}); diff --git a/packages/file-handling/src/file-sink.js b/packages/file-handling/src/file-sink.js index 027cbf5386f11e537595de93bb57d9c4d94a689a..2d8ae592f75161e72b31419172a369447439e4e3 100644 --- a/packages/file-handling/src/file-sink.js +++ b/packages/file-handling/src/file-sink.js @@ -199,6 +199,7 @@ export class FileSink extends ScopedElementsMixin(DBPLitElement) { this.nextcloudDir = this.nextcloudDefaultDir; if (this._('#nextcloud-file-picker').webDavClient !== null) { this._('#nextcloud-file-picker').loadDirectory(this.nextcloudDefaultDir); + console.log("load default nextcloud sink", this.nextcloudDefaultDir); } this.firstOpen = false; } diff --git a/packages/file-handling/src/file-source.js b/packages/file-handling/src/file-source.js index 65cbd053b7a6e118e9cc72c47108a75648ab8bfd..aee6ce705f599b7df2705ce8c7dd0f8c0b3fd849 100644 --- a/packages/file-handling/src/file-source.js +++ b/packages/file-handling/src/file-source.js @@ -366,6 +366,7 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) { this.nextcloudDir = this.nextcloudDefaultDir; if (this._('#nextcloud-file-picker').webDavClient !== null) { this._('#nextcloud-file-picker').loadDirectory(this.nextcloudDefaultDir); + console.log("load default nextcloud source"); } this.firstOpen = false; }