Skip to content
Snippets Groups Projects
Verified Commit daa8d59b authored by Alex ORLUC's avatar Alex ORLUC
Browse files

fix unlock

parent 96b93183
No related branches found
No related tags found
No related merge requests found
...@@ -119,10 +119,11 @@ export class ActionsListComponent implements OnInit { ...@@ -119,10 +119,11 @@ export class ActionsListComponent implements OnInit {
} }
}); });
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
this.unlock();
if (result == 'success') { if (result == 'success') {
this.endAction(); this.endAction();
} else {
this.unlock();
} }
}); });
} }
...@@ -139,10 +140,11 @@ export class ActionsListComponent implements OnInit { ...@@ -139,10 +140,11 @@ export class ActionsListComponent implements OnInit {
} }
}); });
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
this.unlock();
if (result == 'success') { if (result == 'success') {
this.endAction(); this.endAction();
} else {
this.unlock();
} }
}); });
} }
...@@ -159,10 +161,11 @@ export class ActionsListComponent implements OnInit { ...@@ -159,10 +161,11 @@ export class ActionsListComponent implements OnInit {
} }
}); });
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
this.unlock();
if (result == 'success') { if (result == 'success') {
this.endAction(); this.endAction();
} else {
this.unlock();
} }
}); });
} }
...@@ -179,10 +182,11 @@ export class ActionsListComponent implements OnInit { ...@@ -179,10 +182,11 @@ export class ActionsListComponent implements OnInit {
} }
}); });
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
this.unlock();
if (result == 'success') { if (result == 'success') {
this.endAction(); this.endAction();
} else {
this.unlock();
} }
}); });
} }
...@@ -199,10 +203,11 @@ export class ActionsListComponent implements OnInit { ...@@ -199,10 +203,11 @@ export class ActionsListComponent implements OnInit {
} }
}); });
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
this.unlock();
if (result == 'success') { if (result == 'success') {
this.endAction(); this.endAction();
} else {
this.unlock();
} }
}); });
} }
...@@ -219,10 +224,11 @@ export class ActionsListComponent implements OnInit { ...@@ -219,10 +224,11 @@ export class ActionsListComponent implements OnInit {
} }
}); });
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
this.unlock();
if (result == 'success') { if (result == 'success') {
this.endAction(); this.endAction();
} else {
this.unlock();
} }
}); });
} }
...@@ -239,10 +245,11 @@ export class ActionsListComponent implements OnInit { ...@@ -239,10 +245,11 @@ export class ActionsListComponent implements OnInit {
} }
}); });
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
this.unlock();
if (result == 'success') { if (result == 'success') {
this.endAction(); this.endAction();
} else {
this.unlock();
} }
}); });
} }
...@@ -259,10 +266,11 @@ export class ActionsListComponent implements OnInit { ...@@ -259,10 +266,11 @@ export class ActionsListComponent implements OnInit {
} }
}); });
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
this.unlock();
if (result == 'success') { if (result == 'success') {
this.endAction(); this.endAction();
} else {
this.unlock();
} }
}); });
} }
...@@ -279,10 +287,11 @@ export class ActionsListComponent implements OnInit { ...@@ -279,10 +287,11 @@ export class ActionsListComponent implements OnInit {
} }
}); });
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
this.unlock();
if (result == 'success') { if (result == 'success') {
this.endAction(); this.endAction();
} else {
this.unlock();
} }
}); });
} }
...@@ -311,10 +320,11 @@ export class ActionsListComponent implements OnInit { ...@@ -311,10 +320,11 @@ export class ActionsListComponent implements OnInit {
} }
}); });
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
this.unlock();
if (result == 'success') { if (result == 'success') {
this.endAction(); this.endAction();
} else {
this.unlock();
} }
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment