[pbs-devel] [PATCH proxmox-backup 2/2] ui: datastore/Content: add empty text for no snapshots

Dominik Csapak d.csapak at proxmox.com
Fri Oct 1 11:56:55 CEST 2021


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/datastore/Content.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/datastore/Content.js b/www/datastore/Content.js
index ddc923fd..87a9079d 100644
--- a/www/datastore/Content.js
+++ b/www/datastore/Content.js
@@ -261,6 +261,10 @@ Ext.define('PBS.DataStoreContent', {
 		children: children,
 	    });
 
+	    if (!children.length) {
+		view.setEmptyText(gettext('No Snapshots found'));
+	    }
+
 	    this.updateGroupNotes(view);
 
 	    if (selected !== undefined) {
-- 
2.30.2





More information about the pbs-devel mailing list