CT-30 BUG: clear button removes login token #12
@ -18,7 +18,6 @@ export class ArmyDetailComponent implements OnInit {
|
||||
units: IArmy['units'] | null = null;
|
||||
private forcePoints: number;
|
||||
@LocalStorage('forceAddedListStored')
|
||||
// @LocalStorage('ArmyStored')
|
||||
public forceUnitList: ForceUnit[];
|
||||
private responsiveService: ResponsiveService = new ResponsiveService();
|
||||
public isMobileResolution: boolean;
|
||||
@ -132,8 +131,8 @@ export class ArmyDetailComponent implements OnInit {
|
||||
}
|
||||
|
||||
clearForce(): void {
|
||||
localStorage.clear();
|
||||
this.forceUnitList = [];
|
||||
this.forcePoints = 0;
|
||||
localStorage.setItem('forceAddedListStored', JSON.stringify(this.forceUnitList));
|
||||
}
|
||||
}
|
||||
|
@ -96,8 +96,8 @@ export class ForceComponent implements OnInit {
|
||||
}
|
||||
|
||||
clearList(): void {
|
||||
localStorage.clear();
|
||||
this.forceList = [];
|
||||
localStorage.setItem('forceAddedListStored', JSON.stringify(this.forceList));
|
||||
}
|
||||
|
||||
byteSize(base64String: string): string {
|
||||
|
Loading…
Reference in New Issue
Block a user