mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Rearrange tools menu on the basis of usability and form groups of similar sub-menus.
This commit is contained in:
@@ -105,14 +105,14 @@ define('pgadmin.node.server', [
|
||||
{
|
||||
name: 'reload_configuration', node: 'server', module: this,
|
||||
applies: ['tools', 'context'], callback: 'reload_configuration',
|
||||
category: 'reload', priority: 6, label: gettext('Reload Configuration'),
|
||||
category: 'reload', priority: 10, label: gettext('Reload Configuration'),
|
||||
icon: 'fa fa-redo-alt', enable : 'enable_reload_config',data: {
|
||||
data_disabled: gettext('Please select a server from the browser tree to reload the configuration files.'),
|
||||
},
|
||||
},{
|
||||
name: 'restore_point', node: 'server', module: this,
|
||||
applies: ['tools', 'context'], callback: 'restore_point',
|
||||
category: 'restore', priority: 9, label: gettext('Add Named Restore Point...'),
|
||||
category: 'restore', priority: 7, label: gettext('Add Named Restore Point...'),
|
||||
icon: 'fa fa-anchor', enable : 'is_applicable',data: {
|
||||
data_disabled: gettext('Please select any server from the browser tree to Add Named Restore Point.'),
|
||||
},
|
||||
@@ -126,14 +126,14 @@ define('pgadmin.node.server', [
|
||||
},{
|
||||
name: 'wal_replay_pause', node: 'server', module: this,
|
||||
applies: ['tools', 'context'], callback: 'pause_wal_replay',
|
||||
category: 'wal_replay_pause', priority: 7, label: gettext('Pause Replay of WAL'),
|
||||
category: 'wal_replay_pause', priority: 8, label: gettext('Pause Replay of WAL'),
|
||||
icon: 'fa fa-pause-circle', enable : 'wal_pause_enabled',data: {
|
||||
data_disabled: gettext('Please select a connected database as a Super user and run in Recovery mode to Pause Replay of WAL.'),
|
||||
},
|
||||
},{
|
||||
name: 'wal_replay_resume', node: 'server', module: this,
|
||||
applies: ['tools', 'context'], callback: 'resume_wal_replay',
|
||||
category: 'wal_replay_resume', priority: 8, label: gettext('Resume Replay of WAL'),
|
||||
category: 'wal_replay_resume', priority: 9, label: gettext('Resume Replay of WAL'),
|
||||
icon: 'fa fa-play-circle', enable : 'wal_resume_enabled',data: {
|
||||
data_disabled: gettext('Please select a connected database as a Super user and run in Recovery mode to Resume Replay of WAL.'),
|
||||
},
|
||||
|
||||
@@ -498,7 +498,7 @@ define('pgadmin.browser.node', [
|
||||
|
||||
return null;
|
||||
},
|
||||
addUtilityPanel: function() {
|
||||
addUtilityPanel: function(width, height) {
|
||||
var body = window.document.body,
|
||||
el = document.createElement('div');
|
||||
|
||||
@@ -506,10 +506,10 @@ define('pgadmin.browser.node', [
|
||||
|
||||
var new_panel = pgBrowser.docker.addPanel(
|
||||
'utility_props', window.wcDocker.DOCK.FLOAT, undefined, {
|
||||
w: (screen.width < 700 ?
|
||||
screen.width * 0.95 : screen.width * 0.5),
|
||||
h: (screen.height < 500 ?
|
||||
screen.height * 0.95 : screen.height * 0.5),
|
||||
w: (!_.isUndefined(width) && !_.isNull(width)) ? width :
|
||||
(screen.width < 700 ? screen.width * 0.95 : screen.width * 0.5),
|
||||
h: (!_.isUndefined(height) && !_.isNull(height)) ? height :
|
||||
(screen.height < 500 ? screen.height * 0.95 : screen.height * 0.5),
|
||||
x: (screen.width < 700 ? '2%' : '25%'),
|
||||
y: (screen.height < 500 ? '2%' : '25%'),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user