Skip to content
Snippets Groups Projects
Commit 6f48226d authored by Jens Christian Aanestad's avatar Jens Christian Aanestad
Browse files

feat/Created new pinia store for budget

parent 71eb896e
No related branches found
No related tags found
1 merge request!53Refactor/integration budgetview
import { defineStore } from 'pinia'
export const useBudgetStore = defineStore('BudgetStore', {
state: () => ({
activeBudgetId: 0,
}),
actions: {
setActiveBudgetId(id: number) {
this.activeBudgetId = id
}
},
getters: {
getActiveBudgetId(): number {
return this.activeBudgetId
}
},
persist: {
storage: sessionStorage
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment