From 7370adeb185cbd554d64e1c92fefeced23e97397 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 a6e6c6d6..7ddee119 100644
--- a/packages/file-handling/src/nextcloud-file-picker.js
+++ b/packages/file-handling/src/nextcloud-file-picker.js
@@ -691,8 +691,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