mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-05 02:43:27 -05:00
Fixed the following issues:
RM-4232: 1. If the user adds a percentage (other than for placeholders) then it is stripped off. 2. Backslash is getting removed in the connection string if we provide the backslash(\) in placeholders or the database name contains it. 3. If the user added only spaces( )in placeholders it is not getting reset to default values. RM-4230: 1. Rename panel option is not working in the debugger. 2. Added Rename panel for schema diff. Fixes #4232 #4230
This commit is contained in:
committed by
Akshay Joshi
parent
892fb83907
commit
b5f9fffadd
@@ -201,22 +201,17 @@ let NewConnectionDialog = {
|
||||
let tab_title = '';
|
||||
|
||||
var qt_title_placeholder = preferences['qt_tab_title_placeholder'];
|
||||
var placeholders = qt_title_placeholder.split('%');
|
||||
placeholders.forEach(function(placeholder) {
|
||||
if(placeholder == 'DATABASE'){
|
||||
tab_title = tab_title.concat(selected_database_name);
|
||||
} else if(placeholder == 'USERNAME') {
|
||||
if(newConnCollectionModel['role']) {
|
||||
tab_title = tab_title.concat(newConnCollectionModel['role']);
|
||||
} else {
|
||||
tab_title = tab_title.concat(newConnCollectionModel['user']);
|
||||
}
|
||||
} else if(placeholder == 'SERVER') {
|
||||
tab_title = tab_title.concat(response.server_name);
|
||||
} else{
|
||||
tab_title = tab_title.concat(placeholder);
|
||||
}
|
||||
});
|
||||
qt_title_placeholder = qt_title_placeholder.replace(new RegExp('%DATABASE%'), selected_database_name);
|
||||
|
||||
if(newConnCollectionModel['role']) {
|
||||
qt_title_placeholder = qt_title_placeholder.replace(new RegExp('%USERNAME%'), newConnCollectionModel['role']);
|
||||
} else {
|
||||
qt_title_placeholder = qt_title_placeholder.replace(new RegExp('%USERNAME%'), newConnCollectionModel['user']);
|
||||
}
|
||||
|
||||
qt_title_placeholder = qt_title_placeholder.replace(new RegExp('%SERVER%'), response.server_name);
|
||||
|
||||
tab_title = qt_title_placeholder;
|
||||
|
||||
if(!newConnCollectionModel['role']) {
|
||||
newConnCollectionModel['role'] = null;
|
||||
|
||||
Reference in New Issue
Block a user