Apply repository-wide ESLint auto-fix formatting pass
Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
@@ -12,46 +12,46 @@
|
||||
*/
|
||||
|
||||
import { defineStore } from "pinia";
|
||||
import moment from 'moment';
|
||||
import moment from "moment";
|
||||
|
||||
/**
|
||||
* Pinia store for caching user input during conformance rule editing.
|
||||
*/
|
||||
export const useConformanceInputStore = defineStore('conformanceInputStore', {
|
||||
export const useConformanceInputStore = defineStore("conformanceInputStore", {
|
||||
state: () => ({
|
||||
inputDataToSave: {
|
||||
inputStart: null, // TODO: clarify whether "start" means activity start or time start
|
||||
inputEnd: null,
|
||||
min: null,
|
||||
max: null,
|
||||
type: null,
|
||||
task: null,
|
||||
inputStart: null, // TODO: clarify whether "start" means activity start or time start
|
||||
inputEnd: null,
|
||||
min: null,
|
||||
max: null,
|
||||
type: null,
|
||||
task: null,
|
||||
},
|
||||
activityRadioData: {
|
||||
category: null,
|
||||
task: ['', ''],
|
||||
task: ["", ""],
|
||||
},
|
||||
}),
|
||||
getters: {
|
||||
},
|
||||
getters: {},
|
||||
actions: {
|
||||
/**
|
||||
* Sets the activity radio global state for either the start ('From') or end ('To') of a task.
|
||||
* We arrange in this way because backend needs us to communicate in this way.
|
||||
* @param {object} actRadioData
|
||||
* @param {object} actRadioData
|
||||
* @param {string} fromToStr 'From' or 'To'
|
||||
*/
|
||||
setActivityRadioStartEndData(actRadioData, fromToStr){
|
||||
switch(fromToStr) {
|
||||
case 'From':
|
||||
setActivityRadioStartEndData(actRadioData, fromToStr) {
|
||||
switch (fromToStr) {
|
||||
case "From":
|
||||
this.activityRadioData.task[0] = actRadioData;
|
||||
break;
|
||||
case 'To':
|
||||
this.activityRadioData.task[this.activityRadioData.task.length - 1] = actRadioData;
|
||||
case "To":
|
||||
this.activityRadioData.task[this.activityRadioData.task.length - 1] =
|
||||
actRadioData;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user