From 3db2cea7fc8ba87089b21b12b03eaca91bd15bd9 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Mon, 11 Feb 2019 10:17:51 +0100 Subject: [PATCH] FEAT #9156 change route put actions --- .../basket/basket-administration.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/app/administration/basket/basket-administration.component.ts b/src/frontend/app/administration/basket/basket-administration.component.ts index d766f57a94d..f9babc5c4d9 100755 --- a/src/frontend/app/administration/basket/basket-administration.component.ts +++ b/src/frontend/app/administration/basket/basket-administration.component.ts @@ -161,7 +161,7 @@ export class BasketAdministrationComponent implements OnInit { this.dialogRef = this.dialog.open(BasketAdministrationSettingsModalComponent, this.config); this.dialogRef.afterClosed().subscribe((result: any) => { if (result) { - this.http.put(this.coreUrl + "rest/baskets/" + this.id + "/groups/" + result.group.group_id, { 'result_page': result.group.result_page, 'groupActions': result.group.groupActions }) + this.http.put(this.coreUrl + "rest/baskets/" + this.id + "/groups/" + result.group.group_id + "/actions", { 'result_page': result.group.result_page, 'groupActions': result.group.groupActions }) .subscribe(() => { this.dialogRef = null; this.notify.success(this.lang.basketUpdated); @@ -246,7 +246,7 @@ export class BasketAdministrationComponent implements OnInit { } updateResultPage(group: any) { - this.http.put(this.coreUrl + "rest/baskets/" + this.id + "/groups/" + group.group_id, { 'result_page': group.result_page, 'groupActions': group.groupActions }) + this.http.put(this.coreUrl + "rest/baskets/" + this.id + "/groups/" + group.group_id + "/actions", { 'result_page': group.result_page, 'groupActions': group.groupActions }) .subscribe(() => { this.notify.success(this.lang.resultPageUpdated); }, (err) => { @@ -299,7 +299,7 @@ export class BasketAdministrationComponent implements OnInit { } addAction(group: any) { - this.http.put(this.coreUrl + "rest/baskets/" + this.id + "/groups/" + group.group_id, { 'result_page': group.result_page, 'groupActions': group.groupActions }) + this.http.put(this.coreUrl + "rest/baskets/" + this.id + "/groups/" + group.group_id + "/actions", { 'result_page': group.result_page, 'groupActions': group.groupActions }) .subscribe(() => { this.notify.success(this.lang.actionsGroupBasketUpdated); }, (err) => { -- GitLab