mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-07-01 12:30:24 +12:00
34 lines
702 B
TypeScript
34 lines
702 B
TypeScript
|
import { ActionTree } from "vuex"
|
||
|
import { StateInterface } from "../index"
|
||
|
import { AllDocumentsStateInterface } from "./state"
|
||
|
|
||
|
const actions: ActionTree<AllDocumentsStateInterface, StateInterface> = {
|
||
|
|
||
|
markAsNonFirstRun (state) {
|
||
|
state.commit("markAsNonFirstRun")
|
||
|
},
|
||
|
|
||
|
addDocument (state, input) {
|
||
|
state.commit("addDocument", input)
|
||
|
},
|
||
|
|
||
|
updateDocument (state, input) {
|
||
|
state.commit("updateDocument", input)
|
||
|
},
|
||
|
|
||
|
removeDocument (state, input) {
|
||
|
state.commit("removeDocument", input)
|
||
|
},
|
||
|
|
||
|
mapNewDocumentType (state, input) {
|
||
|
state.commit("mapNewDocumentType", input)
|
||
|
},
|
||
|
|
||
|
resetDocuments (state) {
|
||
|
state.commit("resetDocuments")
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default actions
|