mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix help links for backup globals and backup server. Fixes #4365
This commit is contained in:
@@ -27,6 +27,14 @@ export class BackupDialogWrapper extends DialogWrapper {
|
||||
}
|
||||
|
||||
setup() {
|
||||
let get_help_file = function (dialog_type) {
|
||||
if (dialog_type == 'globals') {
|
||||
return 'backup_globals_dialog.html';
|
||||
} else if (dialog_type == 'server') {
|
||||
return 'backup_server_dialog.html';
|
||||
}
|
||||
return 'backup_dialog.html';
|
||||
};
|
||||
return {
|
||||
buttons: [{
|
||||
text: '',
|
||||
@@ -46,7 +54,7 @@ export class BackupDialogWrapper extends DialogWrapper {
|
||||
type: 'button',
|
||||
label: gettext('Backup'),
|
||||
url: url_for('help.static', {
|
||||
'filename': 'backup_dialog.html',
|
||||
'filename': get_help_file(this.typeOfDialog),
|
||||
}),
|
||||
},
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user