From 028346e42ce2c96e561eb42d87d4989dca7dcf09 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 10 May 2022 12:24:25 +0200 Subject: [PATCH] ui: content view: improve empty text reference NS so that users get a hint where they are currently hierarchy-wise, and clarify that we found no *accessible* snapshots, on this level, i.e., there can be some that we just cannot see due to only having access on lover level NS or being different owners. Signed-off-by: Thomas Lamprecht --- www/datastore/Content.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/datastore/Content.js b/www/datastore/Content.js index 636f1c91..74b6e361 100644 --- a/www/datastore/Content.js +++ b/www/datastore/Content.js @@ -278,7 +278,10 @@ Ext.define('PBS.DataStoreContent', { }); if (!children.length) { - view.setEmptyText(gettext('No Snapshots found')); + view.setEmptyText(Ext.String.format( + gettext('No accessible snapshots found in namespace {0}'), + view.namespace && view.namespace !== '' ? `'${view.namespace}'`: gettext('Root'), + )); } this.updateGroupNotes(view);