refactor (slight, although many files)
This commit is contained in:
25
src/stores/conformanceData.js
Normal file
25
src/stores/conformanceData.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export default defineStore('conformanceDataStore', {
|
||||
state: () => ({
|
||||
dataToSave: {
|
||||
start: null,
|
||||
end: null,
|
||||
min: null,
|
||||
max: null,
|
||||
type: null,
|
||||
task: null,
|
||||
},
|
||||
}),
|
||||
getters: {
|
||||
},
|
||||
actions: {
|
||||
/**
|
||||
* Set conformance input data which are fed to backend later.
|
||||
* @param {object} userInputObj
|
||||
*/
|
||||
setConformanceData(userInputObj){
|
||||
this.dataToSave = {...userInputObj};
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user