Skip to content

Commit

Permalink
added load static data button
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasberesoebb committed Oct 2, 2024
1 parent 714d622 commit fda2f45
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/control-center/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ onBeforeMount(async () => {
await ts.loadTopology()
})
function loadStaticData() {
router.push({ path: '/visualizer' })
}
function simulate() {
function findTracksOfFunction(functionAssignment: Function): string[] {
return popupSite.value.tracks.filter((t) => t.function === functionAssignment).map((t) => t.id)
Expand Down Expand Up @@ -62,6 +66,9 @@ function simulate() {
<button class="elm-button" data-variant="brand-primary" title="Simulieren" @click="simulate()">
Simulieren
</button>
<button class="elm-button" data-variant="brand-secondary" title="Statische Daten laden" @click="loadStaticData()">
Statische Daten laden
</button>
</div>
</template>

Expand Down

0 comments on commit fda2f45

Please sign in to comment.