public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
	Aaron Lauterer <a.lauterer@proxmox.com>
Subject: Re: [pve-devel] [PATCH manager v2] ui: node: use plug icon for node shutdown
Date: Mon, 14 Jul 2025 12:48:23 +0200	[thread overview]
Message-ID: <f4ed2805-e3ef-4245-837f-ae68fca743c0@proxmox.com> (raw)
In-Reply-To: <20250702095202.2570401-1-a.lauterer@proxmox.com>

I don't think we'll prevent all users from mis-clicking the button with this change,
but having a different Icon can probably avoid *some* confusion.

I don't really like that this icon would imply we 'pull the plug',
but there is sadly not really a better icon that is different from
the shutdown one.

I'm a bit unsure myself, but *if* we want to have a different icon here than for
the guest shutdown, consider this patch:

Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>

On 7/2/25 11:52, Aaron Lauterer wrote:
> this makes it optically different to the guest shutdown and hopefully
> helps to avoid confusion and accidential node shutdowns.
> 
> Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
> ---
> 
> Notes:
>      changes since:
>      v1:
>      * rebased with updated indentations
>      
>      This came up in the forum and I do like the idea and the change is small
>      enough to just quickly do it
>      https://forum.proxmox.com/threads/disable-server-shutdown-restart-from-the-web-interface.12602/page-2#post-769235
> 
>   www/manager6/node/Config.js | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/www/manager6/node/Config.js b/www/manager6/node/Config.js
> index 4cd1671c..8946a616 100644
> --- a/www/manager6/node/Config.js
> +++ b/www/manager6/node/Config.js
> @@ -117,7 +117,7 @@ Ext.define('PVE.node.Config', {
>               handler: function () {
>                   node_command('shutdown');
>               },
> -            iconCls: 'fa fa-power-off',
> +            iconCls: 'fa fa-plug',
>           });
>   
>           var shellBtn = Ext.create('PVE.button.ConsoleButton', {



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


  reply	other threads:[~2025-07-14 10:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-02  9:52 Aaron Lauterer
2025-07-14 10:48 ` Dominik Csapak [this message]
2025-07-15 19:50   ` 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=f4ed2805-e3ef-4245-837f-ae68fca743c0@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=a.lauterer@proxmox.com \
    --cc=pve-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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal