CT-31: Added save to force.component.ts on modification to allow for page reloading #11

Merged
mitch merged 1 commits from bugfix/CT-31/save-forcelist-on-modifictaion into master 2022-03-23 12:22:35 +00:00
2 changed files with 1 additions and 5 deletions
Showing only changes of commit 59e8f363c9 - Show all commits

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"> <div class="desktop-container" *ngIf="!isMobileResolution; else mobileContainer">
<jhi-force-desktop></jhi-force-desktop> <jhi-force-desktop></jhi-force-desktop>
</div> </div>

View File

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