added pot todos functionality

This commit is contained in:
2024-02-28 14:48:18 +01:00
parent c327355c8a
commit fcc6517110
17 changed files with 1798 additions and 45 deletions

View File

@ -8,6 +8,8 @@ const store = createStore({
searchable: false,
deleteBool: false,
new: false,
clientChanged: false,
changedClientId: -1,
filteredByClient: '',
onAssetlist: true,
@ -76,6 +78,13 @@ const store = createStore({
}
state.filteredByClient = ''
},
toggleClientChanged(state) {
state.clientChanged = !state.clientChanged
},
toggleClientId(state, id) {
state.changedClientId = id
},
// functions to change the asset pages
changeToAssetlist(state) {
@ -197,6 +206,8 @@ const store = createStore({
state.chosenAssetId = -1
state.filteredByClient = ''
state.new = false
state.clientChanged = false
state.changedClientId = -1
// reset the asset page variables
state.newAssetName = ''