diff client/src/store/imports.js @ 1650:90211725e4a9

highlighing feature for staging area
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 20 Dec 2018 16:45:26 +0100
parents bbbc27a7ec99
children 8ff8d873ef6b
line wrap: on
line diff
--- a/client/src/store/imports.js	Thu Dec 20 16:00:50 2018 +0100
+++ b/client/src/store/imports.js	Thu Dec 20 16:45:26 2018 +0100
@@ -33,7 +33,8 @@
     imports: [],
     staging: [],
     schedules: [],
-    importScheduleDetailVisible: false
+    importScheduleDetailVisible: false,
+    importToReview: null
   };
 };
 
@@ -63,7 +64,11 @@
       });
       state.staging = enriched;
     },
-
+    setImportToReview: (state, id) => {
+      if (!isNaN(parseFloat(id)) && isFinite(id)) {
+        state.importToReview = id;
+      }
+    },
     toggleApproval: (state, change) => {
       const { id, newStatus } = change;
       const stagedResult = state.staging.find(e => {