Fix help links for backup globals and backup server. Fixes #4365

pull/24/head
Akshay Joshi 2019-06-17 13:27:21 +05:30
parent 2894c6cd14
commit bf548dda3f
2 changed files with 12 additions and 2 deletions

View File

@ -27,4 +27,6 @@ Bug fixes
| `Bug #4329 <https://redmine.postgresql.org/issues/4329>`_ - Fix an initialisation error when two functions with parameters are debugged in parallel.
| `Bug #4343 <https://redmine.postgresql.org/issues/4343>`_ - Fix issue where property dialog of column should open properly for EPAS v12.
| `Bug #4349 <https://redmine.postgresql.org/issues/4349>`_ - Ensure strings are properly encoded in the Query History.
| `Bug #4350 <https://redmine.postgresql.org/issues/4350>`_ - Ensure we include the CSRF token when uploading files.| `Bug #4357 <https://redmine.postgresql.org/issues/4357>`_ - Fix connection restoration issue when pgAdmin server is restarted and the page is refreshed.
| `Bug #4350 <https://redmine.postgresql.org/issues/4350>`_ - Ensure we include the CSRF token when uploading files.
| `Bug #4357 <https://redmine.postgresql.org/issues/4357>`_ - Fix connection restoration issue when pgAdmin server is restarted and the page is refreshed.
| `Bug #4365 <https://redmine.postgresql.org/issues/4365>`_ - Fix help links for backup globals and backup server.

View File

@ -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),
}),
},
}, {