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

This commit is contained in:
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,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),
}),
},
}, {