From 3cf95e3210d3d36aa69d0ddf825869d563f4843d Mon Sep 17 00:00:00 2001 From: argirok Date: Tue, 11 Jun 2024 14:11:12 +0300 Subject: [PATCH] [plugins-functionality | DONE | Changed ] after save stay in the edit page --- dashboard/plugins/plugins-form/pluginsForm.component.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dashboard/plugins/plugins-form/pluginsForm.component.ts b/dashboard/plugins/plugins-form/pluginsForm.component.ts index 1042715b..ce580b8b 100644 --- a/dashboard/plugins/plugins-form/pluginsForm.component.ts +++ b/dashboard/plugins/plugins-form/pluginsForm.component.ts @@ -169,9 +169,8 @@ export class PluginsFormComponent implements OnInit { public savePlugin(plugin, update){ this.subscriptions.push(this._pluginsService.savePlugin(plugin, this.properties.adminToolsAPIURL,this.selectedCommunityPid ).subscribe( saved => { - this._router.navigate(["../"], {queryParams: {pageId:this.selectedPageId}, relativeTo: this.route} ) - this.selectedTemplate = null; - this.selectedPlugin = null; + this.edit(saved, this.selectedTemplate) + }, error => this.handleUpdateError("System error creating template", error) ));