Allow drag and drop functionality for all the nodes under the database node, excluding collection nodes. Fixes #4435

This commit is contained in:
Fahar Abbas 2019-12-02 09:35:20 +05:30 committed by Akshay Joshi
parent 4fa1bdba5a
commit 623ff4f91f
2 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,7 @@ This release contains a number of bug fixes and new features since the release o
New features
************
| `Issue #4435 <https://redmine.postgresql.org/issues/4435>`_ - Allow drag and drop functionality for all the nodes under the database node, excluding collection nodes.
Housekeeping
************

View File

@ -104,12 +104,15 @@ define('pgadmin.browser', [
b.treeMenu.register($('#tree'));
b.treeMenu.registerDraggableType({
'table partition type sequence package view mview foreign_table edbvar' : (data, item)=>{
'collation domain domain_constraints fts_configuration fts_dictionary fts_parser fts_template synonym table partition type sequence package view mview foreign_table edbvar' : (data, item)=>{
return pgadminUtils.fully_qualify(b, data, item);
},
'schema column' : (data)=>{
'schema column database cast event_trigger extension language foreign_data_wrapper foreign_server user_mapping compound_trigger index index_constraint primary_key unique_constraint check_constraint exclusion_constraint foreign_key rule' : (data)=>{
return pgadminUtils.quote_ident(data._label);
},
'trigger trigger_function' : (data)=>{
return data._label;
},
'edbfunc function edbproc procedure' : (data, item)=>{
let newData = {...data},
parsedFunc = null,