Merge pull request 'CT-31: Added save to force.component.ts on modification to allow for page reloading' (#11) from bugfix/CT-31/save-forcelist-on-modifictaion into master

Reviewed-on: mitch/crusade-tracker#11
This commit is contained in:
mitch 2022-03-23 12:22:34 +00:00
commit 3d94c3f2ec
2 changed files with 1 additions and 5 deletions

View File

@ -1,8 +1,3 @@
<div class="text-danger">
<h1>RELOADING WILL RESET DATA</h1>
</div>
<div class="desktop-container" *ngIf="!isMobileResolution; else mobileContainer">
<jhi-force-desktop></jhi-force-desktop>
</div>

View File

@ -138,6 +138,7 @@ export class ForceComponent implements OnInit {
break;
}
}
localStorage.setItem('forceAddedListStored', JSON.stringify(this.forceList));
}
async saveList(): Promise<void> {