You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
placeHolder: "Enter a username. Leave empty to be prompted at connect time.",
126
126
prompt: `Username for server '${serverName}'`,
127
-
validateInput: ((value)=>{
128
-
returnvalue.length>0 ? "" : "Mandatory field";
129
-
}),
130
127
});
131
128
if(username===undefined){
129
+
// Was cancelled
132
130
returnfalse;
133
131
}
132
+
if(username===''){
133
+
// If unspecified, actually set to undefined to leave it empty in serverDefinitions
134
+
username=undefined;
135
+
}
134
136
serverDefinitions[serverName].username=username;
135
137
if(serversMissingUsernames.length>0){
138
+
constreuseMessage=(username===undefined) ? `Prompt for username at connect time for all of them` : `Use '${username}' as the username for all of them`;
136
139
constitems=[
137
-
`Enter usernames individually for ${serversMissingUsernames.length} more server(s)`,
138
-
`Use username '${username}' for all servers that don't already have a username configured`,
constplaceHolder=(password===undefined) ? `Enter password later for remaining ${promptServerNames.length-1} server(s)?` : `Store the same password for remaining ${promptServerNames.length-1} server(s)?`
192
208
constitems=[
193
209
`No`,
194
210
`Yes`,
@@ -198,7 +214,7 @@ async function promptForPasswords(serverDefinitions: any, newServerNames: string
0 commit comments