CT-30 BUG: clear button removes login token #12

Merged
mitch merged 1 commits from bugfig/CT-30/clear-button-removes-login-token into master 2022-03-23 12:42:31 +00:00
2 changed files with 2 additions and 3 deletions

View File

@ -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));
}
}

View File

@ -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 {