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

View File

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