From 9f8fb928f17c074989d74390fcc22c59d8197fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 10 May 2022 15:01:48 +0200 Subject: [PATCH] ui: add namespace renderer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler Signed-off-by: Thomas Lamprecht --- www/Utils.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/Utils.js b/www/Utils.js index 9a746a44..cff59a7a 100644 --- a/www/Utils.js +++ b/www/Utils.js @@ -681,4 +681,9 @@ Ext.define('PBS.Utils', { return `${modeText} ${extra}`; }, + render_optional_namespace: function(value, metadata, record) { + if (!value) return '-'; // FIXME ?? + return Ext.String.htmlEncode(value); + }, + });