testprod
This commit is contained in:
@@ -47,12 +47,13 @@ export class LoginComponent implements OnInit {
|
||||
.login(email.toLowerCase(), password)
|
||||
.subscribe(
|
||||
data => {
|
||||
|
||||
if (rememberMe) {
|
||||
localStorage.setItem('savedUserEmail', email);
|
||||
} else {
|
||||
localStorage.removeItem('savedUserEmail');
|
||||
}
|
||||
this.router.navigate(['/']);
|
||||
}
|
||||
this.router.navigate(['dashboard']);
|
||||
},
|
||||
error => {
|
||||
this.notificationService.openSnackBar(error.error.message);
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<td mat-cell *matCellDef="let element">
|
||||
<mat-select placeholder="Select action">
|
||||
<mat-option *ngIf="element.status == 'ready'" (click)="prepareSale(element)"><mat-icon>format_list_numbered</mat-icon> Prepare</mat-option>
|
||||
<mat-option *ngIf="element.status == 'ready'" (click)="followSale(element)"><mat-icon>play_arrow</mat-icon> Follow</mat-option>
|
||||
<mat-option *ngIf="element.status == 'ready' || element.status == 'endOnRequest' || element.status == 'endOnError'" (click)="followSale(element)"><mat-icon>play_arrow</mat-icon> Follow</mat-option>
|
||||
<mat-option *ngIf="element.status == 'following'" (click)="stopFollowSale(element)"><mat-icon>stop</mat-icon> Stop Following</mat-option>
|
||||
<mat-option *ngIf="element.status == 'following'" (click)="resetToReady(element._id)">Reset to Ready</mat-option>
|
||||
<mat-option (click)="navigateToSaleDetail(element._id)"><mat-icon>info</mat-icon> Details</mat-option>
|
||||
|
||||
Reference in New Issue
Block a user