diff --git a/js/app/views/CatalogUI.js b/js/app/views/CatalogUI.js index e19209d..c720bc0 100644 --- a/js/app/views/CatalogUI.js +++ b/js/app/views/CatalogUI.js @@ -238,8 +238,20 @@ Ext.define('amdaUI.CatalogUI', { var module = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.catalog.id); // store / columns are the same - not needed to reconfigure grid this.toReconfigure = false; - // if the name has been modified this is a creation - if (this.fclose()) { + + // if save shared catalog + if (module.contextNode && (module.contextNode.get('id') == 'sharedcatalog-treeRootNode')) + { + module.linkedNode = null; + module.createLinkedNode(); + module.createObject(this.object.getJsonValues()); + var obj = module.linkedNode.get('object'); + // synchronisation of objects + this.object = obj; + module.linkedNode.create(); + } + // if the name has been modified this is a creation + else if (this.fclose()) { if (this.object.isModified('name') || this.object.get('fromPlugin')) { // if object already has an id : it's a 'rename' of an existing if (this.object.get('id')){ -- libgit2 0.21.2