public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH manager] fix #5734: provide missing methods for Proxmox.Utils for mobile ui
@ 2024-09-23 10:33 Dominik Csapak
  2024-09-25 12:49 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2024-09-23 10:33 UTC (permalink / raw)
  To: pve-devel

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>
---
 www/mobile/WidgetToolkitUtils.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/www/mobile/WidgetToolkitUtils.js b/www/mobile/WidgetToolkitUtils.js
index b292fcd5..ea710faf 100644
--- a/www/mobile/WidgetToolkitUtils.js
+++ b/www/mobile/WidgetToolkitUtils.js
@@ -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;
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pve-devel] applied: [PATCH manager] fix #5734: provide missing methods for Proxmox.Utils for mobile ui
  2024-09-23 10:33 [pve-devel] [PATCH manager] fix #5734: provide missing methods for Proxmox.Utils for mobile ui Dominik Csapak
@ 2024-09-25 12:49 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2024-09-25 12:49 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominik Csapak

Am 23/09/2024 um 12:33 schrieb Dominik Csapak:
> 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>
> ---
>  www/mobile/WidgetToolkitUtils.js | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
>

applied, thanks!


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-25 12:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-23 10:33 [pve-devel] [PATCH manager] fix #5734: provide missing methods for Proxmox.Utils for mobile ui Dominik Csapak
2024-09-25 12:49 ` [pve-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal