From c4d628a3d722affbb4dc01bf9cd2f050a9c9d844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20T=C3=B6gl?= <toegl@tugraz.at> Date: Wed, 10 Nov 2021 12:32:32 +0100 Subject: [PATCH] Add custom table placeholder text for nextcloud favorites --- packages/file-handling/src/nextcloud-file-picker.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/file-handling/src/nextcloud-file-picker.js b/packages/file-handling/src/nextcloud-file-picker.js index f9312995..e7db5657 100644 --- a/packages/file-handling/src/nextcloud-file-picker.js +++ b/packages/file-handling/src/nextcloud-file-picker.js @@ -689,8 +689,11 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { this.loading = false; this.statusText = ""; - this.tabulatorTable.placeholder = i18n.t('nextcloud-file-picker.no-favorites'); //TODO check why this is not working this.tabulatorTable.setData(dataObject); + + //this.tabulatorTable.querySelector("div.tabulator-tableHolder > div.tabulator-placeholder > span").innerText = i18n.t('nextcloud-file-picker.no-favorites'); + this._('#directory-content-table').querySelector("div.tabulator-tableHolder > div.tabulator-placeholder > span").innerText = i18n.t('nextcloud-file-picker.no-favorites'); + this.isPickerActive = true; this._(".nextcloud-content").scrollTop = 0; this._("#download-button").setAttribute("disabled", "true"); -- GitLab