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