Rename the menu 'Disconnect Database' to 'Disconnect from database'. Fixes #7180

This commit is contained in:
Akshay Joshi 2022-02-15 18:34:31 +05:30
parent d2efee5943
commit 677221cd9c
2 changed files with 5 additions and 4 deletions

View File

@ -14,6 +14,7 @@ New features
Housekeeping
************
| `Issue #7180 <https://redmine.postgresql.org/issues/7180>`_ - Rename the menu 'Disconnect Database' to 'Disconnect from database'.
Bug fixes

View File

@ -84,14 +84,14 @@ define('pgadmin.node.database', [
},{
name: 'connect_database', node: 'database', module: this,
applies: ['object', 'context'], callback: 'connect_database',
category: 'connect', priority: 4, label: gettext('Connect Database...'),
category: 'connect', priority: 4, label: gettext('Connect Database'),
icon: 'fa fa-link', enable : 'is_not_connected', data: {
data_disabled: gettext('Selected database is already connected.'),
},
},{
name: 'disconnect_database', node: 'database', module: this,
applies: ['object', 'context'], callback: 'disconnect_database',
category: 'drop', priority: 5, label: gettext('Disconnect Database...'),
category: 'drop', priority: 5, label: gettext('Disconnect from database'),
icon: 'fa fa-unlink', enable : 'is_connected',data: {
data_disabled: gettext('Selected database is already disconnected.'),
},
@ -219,8 +219,8 @@ define('pgadmin.node.database', [
if (d) {
Notify.confirm(
gettext('Disconnect the database'),
gettext('Are you sure you want to disconnect the database - %s?', d.label),
gettext('Disconnect from database'),
gettext('Are you sure you want to disconnect from database - %s?', d.label),
function() {
var data = d;
$.ajax({