added pot todos functionality
This commit is contained in:
@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user