Change the priority of Tools menu item

pull/3/head
Akshay Joshi 2016-05-19 13:53:49 +05:30
parent 574f81f9fa
commit 3a9b331df6
4 changed files with 13 additions and 13 deletions

View File

@ -47,7 +47,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
},{
name: 'restore_point', node: 'server', module: this,
applies: ['tools', 'context'], callback: 'restore_point',
category: 'restore', priority: 7, label: '{{ _('Add named restore point') }}',
category: 'restore', priority: 9, label: '{{ _('Add named restore point') }}',
icon: 'fa fa-anchor', enable : 'is_applicable'
},{
name: 'change_password', node: 'server', module: this,
@ -57,12 +57,12 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
},{
name: 'wal_replay_pause', node: 'server', module: this,
applies: ['tools', 'context'], callback: 'pause_wal_replay',
category: 'wal_replay_pause', priority: 8, label: '{{ _('Pause replay of WAL') }}',
category: 'wal_replay_pause', priority: 7, label: '{{ _('Pause replay of WAL') }}',
icon: 'fa fa-pause-circle', enable : 'wal_pause_enabled'
},{
name: 'wal_replay_resume', node: 'server', module: this,
applies: ['tools', 'context'], callback: 'resume_wal_replay',
category: 'wal_replay_resume', priority: 9, label: '{{ _('Resume replay of WAL') }}',
category: 'wal_replay_resume', priority: 8, label: '{{ _('Resume replay of WAL') }}',
icon: 'fa fa-play-circle', enable : 'wal_resume_enabled'
}]);

View File

@ -309,27 +309,27 @@ TODO LIST FOR BACKUP:
var menus = [{
name: 'backup_global', module: this,
applies: ['tools'], callback: 'start_backup_global',
priority: 10, label: '{{_("Backup Globals...") }}',
priority: 12, label: '{{_("Backup Globals...") }}',
icon: 'fa fa-floppy-o', enable: menu_enabled_server
},{
name: 'backup_server', module: this,
applies: ['tools'], callback: 'start_backup_server',
priority: 10, label: '{{_("Backup Server...") }}',
priority: 12, label: '{{_("Backup Server...") }}',
icon: 'fa fa-floppy-o', enable: menu_enabled_server
},{
name: 'backup_global_ctx', module: this, node: 'server',
applies: ['context'], callback: 'start_backup_global',
priority: 10, label: '{{_("Backup Globals...") }}',
priority: 12, label: '{{_("Backup Globals...") }}',
icon: 'fa fa-floppy-o', enable: menu_enabled_server
},{
name: 'backup_server_ctx', module: this, node: 'server',
applies: ['context'], callback: 'start_backup_server',
priority: 10, label: '{{_("Backup Server...") }}',
priority: 12, label: '{{_("Backup Server...") }}',
icon: 'fa fa-floppy-o', enable: menu_enabled_server
},{
name: 'backup_object', module: this,
applies: ['tools'], callback: 'backup_objects',
priority: 10, label: '{{_("Backup...") }}',
priority: 11, label: '{{_("Backup...") }}',
icon: 'fa fa-floppy-o', enable: menu_enabled
}];
@ -338,7 +338,7 @@ TODO LIST FOR BACKUP:
name: 'backup_' + backup_supported_nodes[idx],
node: backup_supported_nodes[idx], module: this,
applies: ['context'], callback: 'backup_objects',
priority: 10, label: '{{_("Backup...") }}',
priority: 11, label: '{{_("Backup...") }}',
icon: 'fa fa-floppy-o', enable: menu_enabled
});
}

View File

@ -165,7 +165,7 @@ define([
var menus = [{
name: 'grant_wizard_schema', module: this,
applies: ['tools'], callback: 'start_grant_wizard',
priority: 10, label: '{{_("Grant Wizard...") }}',
priority: 14, label: '{{_("Grant Wizard...") }}',
icon: 'fa fa-unlock-alt', enable: menu_enabled
}];
@ -175,7 +175,7 @@ define([
name: 'grant_wizard_schema_context_' + supported_nodes[idx],
node: supported_nodes[idx], module: this,
applies: ['context'], callback: 'start_grant_wizard',
priority: 10, label: '{{_("Grant Wizard...") }}',
priority: 14, label: '{{_("Grant Wizard...") }}',
icon: 'fa fa-unlock-alt', enable: menu_enabled
});
}

View File

@ -267,7 +267,7 @@ define([
var menus = [{
name: 'restore_object', module: this,
applies: ['tools'], callback: 'restore_objects',
priority: 9, label: '{{_("Restore...") }}',
priority: 13, label: '{{_("Restore...") }}',
icon: 'fa fa-upload', enable: menu_enabled
}];
@ -276,7 +276,7 @@ define([
name: 'restore_' + restore_supported_nodes[idx],
node: restore_supported_nodes[idx], module: this,
applies: ['context'], callback: 'restore_objects',
priority: 9, label: '{{_("Restore...") }}',
priority: 13, label: '{{_("Restore...") }}',
icon: 'fa fa-upload', enable: menu_enabled
});
}