Implement Budget-List via Getter

This commit is contained in:
jacob1123 committed 2022-01-23 22:24:17 +00:00
1 parent 6086447126
commit 0bd63636bb
2 files changed
+6 -6

No files matched your search

+1 -6
View File
@@ -1,10 +1,5 @@
<script>
export default {
computed: {
dashboard () {
return this.$store.state;
}
},
mounted () {
this.$store.dispatch("fetchDashboard");
}
@@ -12,7 +7,7 @@ export default {
</script>
<template>
<div v-if="dashboard != nil" v-for="budget in dashboard.Budgets" class="budget-item">
<div v-for="budget in $store.getters.Budgets" class="budget-item">
<router-link v-bind:to="'/budget/'+budget.ID">{{budget.Name}}</router-link>
<span class="time"></span>
</div>