all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Hannes Laimer" <h.laimer@proxmox.com>
To: "Aaron Lauterer" <a.lauterer@proxmox.com>,
	"Proxmox VE development discussion" <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH pve-manager] ui: storage: add is_mountpoint checkmark to directory storage edit
Date: Fri, 23 Feb 2024 12:59:32 +0100	[thread overview]
Message-ID: <CZCFWHAY48JH.34JNGWURMQP7B@dev> (raw)
In-Reply-To: <df7ea7c3-ddc9-4fc0-91a2-d18e7eaa5435@proxmox.com>

On Fri Feb 23, 2024 at 12:51 PM CET, Aaron Lauterer wrote:
> Overall good idea :)
>
> On 2/23/24 12:45, Hannes Laimer wrote:
> > Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
> > ---
> > 
> > came up in enterprise support, and I don't think there is a reason to
> > not have it in the UI, while having it in the API
> > 
> >   www/manager6/storage/DirEdit.js | 12 ++++++++++++
> >   1 file changed, 12 insertions(+)
> > 
> > diff --git a/www/manager6/storage/DirEdit.js b/www/manager6/storage/DirEdit.js
> > index 3e2025fc..52e7134b 100644
> > --- a/www/manager6/storage/DirEdit.js
> > +++ b/www/manager6/storage/DirEdit.js
> > @@ -37,6 +37,18 @@ Ext.define('PVE.storage.DirInputPanel', {
> >   	    },
> >   	];
> >   
> > +	me.advancedColumn2 = [
> > +	    {
> > +		xtype: 'proxmoxcheckbox',
> > +		name: 'is_mountpoint',
> > +		uncheckedValue: 0,
> > +		fieldLabel: gettext('Mountpoint'),
> > +		autoEl: {
> > +		    tag: 'div',
> > +		    'data-qtip': gettext('Enable if something is mounted to this directory externally, storage is considered offline as long as nothing is mounted.'),
>
> Maybe phrase the tooltip like this?
>
> Enable if something is mounted at this path. Storage is considered offline as long as nothing is mounted.
sure, I'll send a v2
>
>
> As there are also use-cases where something local is mounted outside of the PVE tooling where the is_mountpoint option is useful.
>
> > +		},
> > +	    },
> > +	];
> >   	me.callParent();
> >       },
> >   });





      reply	other threads:[~2024-02-23 11:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-23 11:45 Hannes Laimer
2024-02-23 11:51 ` Aaron Lauterer
2024-02-23 11:59   ` Hannes Laimer [this message]

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=CZCFWHAY48JH.34JNGWURMQP7B@dev \
    --to=h.laimer@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal