plugins-functionality #43
|
@ -169,9 +169,8 @@ export class PluginsFormComponent implements OnInit {
|
||||||
public savePlugin(plugin, update){
|
public savePlugin(plugin, update){
|
||||||
this.subscriptions.push(this._pluginsService.savePlugin(plugin, this.properties.adminToolsAPIURL,this.selectedCommunityPid ).subscribe(
|
this.subscriptions.push(this._pluginsService.savePlugin(plugin, this.properties.adminToolsAPIURL,this.selectedCommunityPid ).subscribe(
|
||||||
saved => {
|
saved => {
|
||||||
this._router.navigate(["../"], {queryParams: {pageId:this.selectedPageId}, relativeTo: this.route} )
|
this.edit(saved, this.selectedTemplate)
|
||||||
this.selectedTemplate = null;
|
|
||||||
this.selectedPlugin = null;
|
|
||||||
},
|
},
|
||||||
error => this.handleUpdateError("System error creating template", error)
|
error => this.handleUpdateError("System error creating template", error)
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in New Issue