From: Dominik Csapak <d.csapak@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-gui 1/1] quarantine view: add option to switch to mobile view
Date: Tue, 23 Sep 2025 15:20:07 +0200 [thread overview]
Message-ID: <20250923132013.3145698-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20250923132013.3145698-1-d.csapak@proxmox.com>
by appending '?mobile=1' to the url
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
js/QuarantineView.js | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/js/QuarantineView.js b/js/QuarantineView.js
index 496ed38..6a740b0 100644
--- a/js/QuarantineView.js
+++ b/js/QuarantineView.js
@@ -161,6 +161,12 @@ Ext.define('PMG.QuarantineView', {
PMG.Utils.doQuarantineAction(qa.action, qa.cselect);
},
+ switchToMobile: function () {
+ let params = new URLSearchParams(document.location.search);
+ params.set('mobile', '1');
+ document.location.search = params.toString();
+ },
+
control: {
'[reference=logoutButton]': {
click: 'logout',
@@ -171,6 +177,9 @@ Ext.define('PMG.QuarantineView', {
'[reference=themeButton]': {
click: 'changeTheme',
},
+ '[reference=mobileButton]': {
+ click: 'switchToMobile',
+ },
},
init: function (view) {
@@ -263,6 +272,11 @@ Ext.define('PMG.QuarantineView', {
text: gettext('Language'),
reference: 'languageButton',
},
+ {
+ iconCls: 'fa fa-mobile',
+ text: gettext('Switch to Mobile View'),
+ reference: 'mobileButton',
+ },
'-',
{
reference: 'logoutButton',
--
2.47.3
_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
next prev parent reply other threads:[~2025-09-23 13:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-23 13:20 [pmg-devel] [PATCH pmg-gui/pmg-yew-quarantine-gui 0/2] quarantine: allow switching between mobile and desktop ui Dominik Csapak
2025-09-23 13:20 ` Dominik Csapak [this message]
2025-09-23 15:21 ` [pmg-devel] [PATCH pmg-gui 1/1] quarantine view: add option to switch to mobile view Thomas Lamprecht
2025-09-23 13:20 ` [pmg-devel] [PATCH pmg-yew-quarantine-gui 1/1] spam list: add option menu Dominik Csapak
2025-09-23 14:46 ` [pmg-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250923132013.3145698-2-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox