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

Error handling when webdavclient is broken

parent 6ef6abfc
No related branches found
No related tags found
1 merge request!1Filehandling overwrite dialog
Pipeline #12626 passed
......@@ -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;
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment