public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup 1/2] ui: datastore add: validate if path is absolute
@ 2024-04-26  6:27 Dominik Csapak
  2024-04-26  6:27 ` [pbs-devel] [PATCH proxmox-backup 2/2] ui: prune jobs: add enabled column in grid Dominik Csapak
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2024-04-26  6:27 UTC (permalink / raw)
  To: pbs-devel

the backend checks this too, but by then we closed the window already
and the user has to start adding again.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 www/window/DataStoreEdit.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/window/DataStoreEdit.js b/www/window/DataStoreEdit.js
index b61154606..4d4c528f3 100644
--- a/www/window/DataStoreEdit.js
+++ b/www/window/DataStoreEdit.js
@@ -61,6 +61,7 @@ Ext.define('PBS.DataStoreEdit', {
 			allowBlank: false,
 			fieldLabel: gettext('Backing Path'),
 			emptyText: gettext('An absolute path'),
+			validator: v => v.startsWith('/') ? true : gettext('Path must be absolute.'),
 		    },
 		],
 		column2: [
-- 
2.39.2



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


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

end of thread, other threads:[~2024-04-26  6:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-26  6:27 [pbs-devel] [PATCH proxmox-backup 1/2] ui: datastore add: validate if path is absolute Dominik Csapak
2024-04-26  6:27 ` [pbs-devel] [PATCH proxmox-backup 2/2] ui: prune jobs: add enabled column in grid Dominik Csapak

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