Skip to content

Commit

Permalink
* Changes submodel options for create emme project (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
SelinaMT authored Oct 31, 2024
1 parent c5df96e commit 86bc375
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const CreateEmmeProject = ({
<div className="Submodel_select">
<select id="submodel" value={submodel} onChange={e => setSubmodel(e.target.value)}>
<option key={"submodel_select"} value={""}>--- valitse ---</option>
{submodels && submodels.map((submodel) =>
{projectSubmodels && projectSubmodels.map((submodel) =>
<option key={submodel.id} value={submodel.id}>{submodel.name}</option>)
}
</select>
Expand Down
5 changes: 5 additions & 0 deletions src/renderer/components/CreateEmmeProject/ProjectSubmodels.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const projectSubmodels = [{id: "koko_suomi", name: "Koko Suomi"}, , {id: "alueelliset_osamallit", name: "Alueelliset osamallit"}, {id: "koko_suomi_kunta", name: "Koko Suomi kuntajaossa"}];

module.exports = {
projectSubmodels: projectSubmodels,
};
1 change: 1 addition & 0 deletions src/renderer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<script type="text/babel" src="components/Project/Scenario/Scenario.jsx"></script>
<link rel="stylesheet" type="text/css" href="components/Project/Scenario/Scenario.css">
<script type="text/babel" src="components/Project/Scenario/Submodels.js"></script>
<script type="text/babel" src="components/CreateEmmeProject/ProjectSubmodels.js"></script>
<script type="text/babel" src="components/Project/Runtime/Runtime.jsx"></script>
<link rel="stylesheet" type="text/css" href="components/Project/Runtime/Runtime.css">
<script type="text/babel" src="components/Project/Runtime/ScenariosToRun.jsx"></script>
Expand Down

0 comments on commit 86bc375

Please sign in to comment.