From 59e8f363c9a02040e9a06b9bc1a6f9403e04ad92 Mon Sep 17 00:00:00 2001 From: mitch Date: Wed, 23 Mar 2022 08:21:54 -0400 Subject: [PATCH] CT-31: Added save to force.component.ts on modification to allow for page reloading --- src/main/webapp/app/entities/force/force.component.html | 5 ----- src/main/webapp/app/entities/force/force.component.ts | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/webapp/app/entities/force/force.component.html b/src/main/webapp/app/entities/force/force.component.html index 17e20e40..ecc08558 100644 --- a/src/main/webapp/app/entities/force/force.component.html +++ b/src/main/webapp/app/entities/force/force.component.html @@ -1,8 +1,3 @@ -
-

RELOADING WILL RESET DATA

-
- -
diff --git a/src/main/webapp/app/entities/force/force.component.ts b/src/main/webapp/app/entities/force/force.component.ts index e508e53c..bc16cd35 100644 --- a/src/main/webapp/app/entities/force/force.component.ts +++ b/src/main/webapp/app/entities/force/force.component.ts @@ -138,6 +138,7 @@ export class ForceComponent implements OnInit { break; } } + localStorage.setItem('forceAddedListStored', JSON.stringify(this.forceList)); } async saveList(): Promise { -- 2.45.2