mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix drop/drop cascade regression. Fixes #3823
This commit is contained in:
committed by
Dave Page
parent
62bb3ca097
commit
72ba5bdaee
@@ -218,10 +218,7 @@ define([
|
|||||||
tooltip: gettext('Delete/Drop'),
|
tooltip: gettext('Delete/Drop'),
|
||||||
extraClasses: ['btn-default', 'delete_multiple'],
|
extraClasses: ['btn-default', 'delete_multiple'],
|
||||||
icon: 'fa fa-lg fa-trash-o',
|
icon: 'fa fa-lg fa-trash-o',
|
||||||
disabled: _.isFunction(that.canDrop) ?
|
disabled: (_.isFunction(that.canDrop)) ? !(that.canDrop.apply(self, [data, item])) : (!that.canDrop),
|
||||||
function() {
|
|
||||||
return !(that.canDrop.apply(self, arguments));
|
|
||||||
} : (!that.canDrop),
|
|
||||||
register: function(btn) {
|
register: function(btn) {
|
||||||
btn.on('click',() => {
|
btn.on('click',() => {
|
||||||
onDrop('drop');
|
onDrop('drop');
|
||||||
@@ -235,10 +232,7 @@ define([
|
|||||||
tooltip: gettext('Drop Cascade'),
|
tooltip: gettext('Drop Cascade'),
|
||||||
extraClasses: ['btn-default', 'delete_multiple_cascade'],
|
extraClasses: ['btn-default', 'delete_multiple_cascade'],
|
||||||
icon: '',
|
icon: '',
|
||||||
disabled: _.isFunction(that.canDropCascade) ?
|
disabled: (_.isFunction(that.canDropCascade)) ? !(that.canDropCascade.apply(self, [data, item])) : (!that.canDropCascade),
|
||||||
function() {
|
|
||||||
return !(that.canDropCascade.apply(self, arguments));
|
|
||||||
} : (!that.canDropCascade),
|
|
||||||
register: function(btn) {
|
register: function(btn) {
|
||||||
btn.on('click',() => {
|
btn.on('click',() => {
|
||||||
onDrop('dropCascade');
|
onDrop('dropCascade');
|
||||||
|
|||||||
Reference in New Issue
Block a user