diff --git a/packages/file-handling/src/file-source.js b/packages/file-handling/src/file-source.js index 20f736336eb743c075a24b0c583132038dc67ec2..261ebeca03b316a608cc10e52a61f8a32de6b735 100644 --- a/packages/file-handling/src/file-source.js +++ b/packages/file-handling/src/file-source.js @@ -316,7 +316,10 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) { } openDialog() { - this.loadWebdavDirectory(); + if (this.enabledSources.includes('nextcloud')) { + this.loadWebdavDirectory(); + } + MicroModal.show(this._('#modal-picker'), { disableScroll: true, onClose: modal => { this.isDialogOpen = false;