diff --git a/packages/file-handling/src/dbp-nextcloud-file-picker.js b/packages/file-handling/src/dbp-nextcloud-file-picker.js index ce39563c852ccf3c6074d41cfa5e7fb8bb55d95c..dab1cd127ecd3481ce47b629dbdaa464db74979b 100644 --- a/packages/file-handling/src/dbp-nextcloud-file-picker.js +++ b/packages/file-handling/src/dbp-nextcloud-file-picker.js @@ -319,7 +319,6 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { " </d:prop>" + "</d:propfind>"}) .then(contents => { - //console.log("contents", contents); this.loading = false; this.statusText = ""; this.tabulatorTable.setData(contents.data); @@ -336,16 +335,17 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { this.loading = false; this.statusText = error.message; this.isPickerActive = false; - } - - this.tabulatorTable.clearData(); - this.webDavClient = null; - // TODO Ãœbersetzung - let reloadButton = html`Something went wrong. Please reload <button class="button" + this.tabulatorTable.clearData(); + this.webDavClient = null; + // TODO Ãœbersetzung + let reloadButton = html`Something went wrong. Please reload <button class="button" title="${i18n.t('nextcloud-file-picker.refresh-nextcloud-file-picker')}" @click="${async () => { this.openFilePicker(); } }"><dbp-icon name="reload"></button>`; - this.loading = false; - this.statusText = reloadButton; + this.loading = false; + this.statusText = reloadButton; + } + + }); }