mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-13 00:21:59 -05:00
Fixed the canDrop function of the node menus does not get called during
enable/disable menu checks. Tweaked a little bit by Ashesh.
This commit is contained in:
1 parent
b22d73ec46
commit
cc91a538e0
1 file changed
+4
-1
@@ -89,7 +89,10 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
|
||||
applies: ['object', 'context'], callback: 'delete_obj',
|
||||
priority: 3, label: '{{ _("Delete/Drop") }}',
|
||||
data: {'url': 'drop'}, icon: 'fa fa-trash',
|
||||
enable: _.isFunction(self.canDrop) ? !!self.canDrop.apply(self, arguments) : (!!self.canDrop)
|
||||
enable: _.isFunction(self.canDrop) ?
|
||||
function() {
|
||||
return !!(self.canDrop.apply(self, arguments));
|
||||
} : (!!self.canDrop)
|
||||
}]);
|
||||
if (self.canDropCascade) {
|
||||
pgAdmin.Browser.add_menus([{
|
||||
|
||||
Reference in new issue
Block a user