fix #5734: provide missing methods for Proxmox.Utils for mobile ui

since the mobile ui shares the Utils code with the desktop web ui, (but
not the proxmox-widget-toolkit) all methods used in constructors, etc.
there must be available in the mobile ui too.

We don't have any notification configuration options in the mobile ui,
and AFAIK we don't plan to add those there, so we can just implement
stub functions. This way the Utils constructor can proceed without
errors, fixing loading the mobile ui.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2024-09-23 12:33:31 +02:00 committed by Thomas Lamprecht
parent 3e0176e6bb
commit 5d24b7d37e

View File

@ -586,6 +586,15 @@ utilities: {
}
},
overrideNotificationFieldName: function(extra) {
// do nothing, we don't have notification configuration in mobile ui
},
overrideNotificationFieldValue: function(extra) {
// do nothing, we don't have notification configuration in mobile ui
},
format_task_description: function(type, id) {
let farray = Proxmox.Utils.task_desc_table[type];
let text;