From daa8d59bb39a3f98d9500f6dfd05f74d01cf78d2 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Mon, 11 Mar 2019 17:06:44 +0100 Subject: [PATCH] fix unlock --- .../app/actions/actions-list.component.ts | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/frontend/app/actions/actions-list.component.ts b/src/frontend/app/actions/actions-list.component.ts index 8847f9b532b..b9c9e2e6404 100644 --- a/src/frontend/app/actions/actions-list.component.ts +++ b/src/frontend/app/actions/actions-list.component.ts @@ -119,10 +119,11 @@ export class ActionsListComponent implements OnInit { } }); dialogRef.afterClosed().subscribe(result => { - this.unlock(); - + if (result == 'success') { this.endAction(); + } else { + this.unlock(); } }); } @@ -139,10 +140,11 @@ export class ActionsListComponent implements OnInit { } }); dialogRef.afterClosed().subscribe(result => { - this.unlock(); if (result == 'success') { this.endAction(); + } else { + this.unlock(); } }); } @@ -159,10 +161,11 @@ export class ActionsListComponent implements OnInit { } }); dialogRef.afterClosed().subscribe(result => { - this.unlock(); if (result == 'success') { this.endAction(); + } else { + this.unlock(); } }); } @@ -179,10 +182,11 @@ export class ActionsListComponent implements OnInit { } }); dialogRef.afterClosed().subscribe(result => { - this.unlock(); if (result == 'success') { this.endAction(); + } else { + this.unlock(); } }); } @@ -199,10 +203,11 @@ export class ActionsListComponent implements OnInit { } }); dialogRef.afterClosed().subscribe(result => { - this.unlock(); if (result == 'success') { this.endAction(); + } else { + this.unlock(); } }); } @@ -219,10 +224,11 @@ export class ActionsListComponent implements OnInit { } }); dialogRef.afterClosed().subscribe(result => { - this.unlock(); if (result == 'success') { this.endAction(); + } else { + this.unlock(); } }); } @@ -239,10 +245,11 @@ export class ActionsListComponent implements OnInit { } }); dialogRef.afterClosed().subscribe(result => { - this.unlock(); if (result == 'success') { this.endAction(); + } else { + this.unlock(); } }); } @@ -259,10 +266,11 @@ export class ActionsListComponent implements OnInit { } }); dialogRef.afterClosed().subscribe(result => { - this.unlock(); if (result == 'success') { this.endAction(); + } else { + this.unlock(); } }); } @@ -279,10 +287,11 @@ export class ActionsListComponent implements OnInit { } }); dialogRef.afterClosed().subscribe(result => { - this.unlock(); if (result == 'success') { this.endAction(); + } else { + this.unlock(); } }); } @@ -311,10 +320,11 @@ export class ActionsListComponent implements OnInit { } }); dialogRef.afterClosed().subscribe(result => { - this.unlock(); if (result == 'success') { this.endAction(); + } else { + this.unlock(); } }); } -- GitLab