[pbs-devel] [PATCH v2 proxmox-backup] Close #3058: ui: RemoteEdit: Add empty texts

Dominic Jäger d.jaeger at proxmox.com
Wed Oct 7 11:53:25 CEST 2020


Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
v1->v2:
Make clear that the emptyTexts are not defaults

 www/window/RemoteEdit.js | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/www/window/RemoteEdit.js b/www/window/RemoteEdit.js
index 56a248e0..6515dce9 100644
--- a/www/window/RemoteEdit.js
+++ b/www/window/RemoteEdit.js
@@ -34,7 +34,8 @@ Ext.define('PBS.window.RemoteEdit', {
 	    {
 		xtype: 'pmxDisplayEditField',
 		name: 'name',
-		fieldLabel: gettext('Remote'),
+		fieldLabel: gettext('Remote ID'),
+		emptyText: 'E.g., new_remote',
 		renderer: Ext.htmlEncode,
 		allowBlank: false,
 		minLength: 4,
@@ -48,7 +49,8 @@ Ext.define('PBS.window.RemoteEdit', {
 		name: 'hostport',
 		submitValue: false,
 		vtype: 'HostPort',
-		fieldLabel: gettext('Host'),
+		fieldLabel: gettext('Remote Address'),
+		emptyText: 'E.g., 192.168.10.10',
 		listeners: {
 		    change: function(field, newvalue) {
 			let host = newvalue;
@@ -94,7 +96,8 @@ Ext.define('PBS.window.RemoteEdit', {
 		xtype: 'proxmoxtextfield',
 		allowBlank: false,
 		name: 'userid',
-		fieldLabel: gettext('Userid'),
+		fieldLabel: gettext('User ID'),
+		emptyText: 'E.g., admin at pbs',
 	    },
 	    {
 		xtype: 'textfield',
@@ -116,6 +119,7 @@ Ext.define('PBS.window.RemoteEdit', {
 		    deleteEmpty: '{!isCreate}',
 		},
 		fieldLabel: gettext('Fingerprint'),
+		emptyText: 'Server certificate SHA-256 fingerprint, required for self-signed certificates',
 	    },
 	    {
 		xtype: 'proxmoxtextfield',
-- 
2.20.1





More information about the pbs-devel mailing list