mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
eslint corrections
This commit is contained in:
@@ -129,7 +129,11 @@
|
|||||||
<a
|
<a
|
||||||
class="dropdown-item"
|
class="dropdown-item"
|
||||||
@click="prepareDocumentDuplicationToWork(d)"
|
@click="prepareDocumentDuplicationToWork(d)"
|
||||||
>{{ trans(EVALUATION_DOCUMENT_DUPLICATE_TO_OTHER_EVALUATION) }}</a
|
>{{
|
||||||
|
trans(
|
||||||
|
EVALUATION_DOCUMENT_DUPLICATE_TO_OTHER_EVALUATION,
|
||||||
|
)
|
||||||
|
}}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@@ -52,11 +52,9 @@ import TimeSpentInput from "./TimeSpentInput.vue";
|
|||||||
import CommentInput from "./CommentInput.vue";
|
import CommentInput from "./CommentInput.vue";
|
||||||
import DocumentsList from "./DocumentsList.vue";
|
import DocumentsList from "./DocumentsList.vue";
|
||||||
import DocumentActions from "./DocumentActions.vue";
|
import DocumentActions from "./DocumentActions.vue";
|
||||||
import { useToast } from "vue-toast-notification";
|
|
||||||
|
|
||||||
const props = defineProps(["evaluation", "docAnchorId"]);
|
const props = defineProps(["evaluation", "docAnchorId"]);
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const toast = useToast();
|
|
||||||
|
|
||||||
const timeSpentChoices = [
|
const timeSpentChoices = [
|
||||||
{ text: "1 minute", value: 60 },
|
{ text: "1 minute", value: 60 },
|
||||||
|
@@ -11,12 +11,12 @@ import { findSocialActionsBySocialIssue } from "ChillPersonAssets/vuejs/_api/Soc
|
|||||||
import { create } from "ChillPersonAssets/vuejs/_api/AccompanyingCourseWork.js";
|
import { create } from "ChillPersonAssets/vuejs/_api/AccompanyingCourseWork.js";
|
||||||
import { fetchResults, makeFetch } from "ChillMainAssets/lib/api/apiMethods.ts";
|
import { fetchResults, makeFetch } from "ChillMainAssets/lib/api/apiMethods.ts";
|
||||||
import { fetchTemplates } from "ChillDocGeneratorAssets/api/pickTemplate.js";
|
import { fetchTemplates } from "ChillDocGeneratorAssets/api/pickTemplate.js";
|
||||||
import { duplicate, duplicateDocumentToEvaluation } from "../_api/accompanyingCourseWorkEvaluationDocument";
|
import {
|
||||||
|
duplicate,
|
||||||
|
duplicateDocumentToEvaluation,
|
||||||
|
} from "../_api/accompanyingCourseWorkEvaluationDocument";
|
||||||
|
|
||||||
const debug = process.env.NODE_ENV !== "production";
|
const debug = process.env.NODE_ENV !== "production";
|
||||||
const evalFQDN = encodeURIComponent(
|
|
||||||
"Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluation",
|
|
||||||
);
|
|
||||||
|
|
||||||
const store = createStore({
|
const store = createStore({
|
||||||
strict: debug,
|
strict: debug,
|
||||||
@@ -606,8 +606,14 @@ const store = createStore({
|
|||||||
commit("addDuplicatedDocument", { document: newDoc, evaluation_key });
|
commit("addDuplicatedDocument", { document: newDoc, evaluation_key });
|
||||||
},
|
},
|
||||||
async duplicateDocumentToEvaluation({ commit }, { document, evaluation }) {
|
async duplicateDocumentToEvaluation({ commit }, { document, evaluation }) {
|
||||||
const newDoc = await duplicateDocumentToEvaluation(document.id, evaluation.id);
|
const newDoc = await duplicateDocumentToEvaluation(
|
||||||
commit("addDuplicatedDocumentToEvaluation", { document: newDoc, evaluation });
|
document.id,
|
||||||
|
evaluation.id,
|
||||||
|
);
|
||||||
|
commit("addDuplicatedDocumentToEvaluation", {
|
||||||
|
document: newDoc,
|
||||||
|
evaluation,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
removeDocument({ commit }, payload) {
|
removeDocument({ commit }, payload) {
|
||||||
commit("removeDocument", payload);
|
commit("removeDocument", payload);
|
||||||
@@ -618,8 +624,7 @@ const store = createStore({
|
|||||||
submit({ getters, state, commit }, callback) {
|
submit({ getters, state, commit }, callback) {
|
||||||
let payload = getters.buildPayload,
|
let payload = getters.buildPayload,
|
||||||
params = new URLSearchParams({ entity_version: state.version }),
|
params = new URLSearchParams({ entity_version: state.version }),
|
||||||
url = `/api/1.0/person/accompanying-course/work/${state.work.id}.json?${params}`,
|
url = `/api/1.0/person/accompanying-course/work/${state.work.id}.json?${params}`;
|
||||||
errors = [];
|
|
||||||
commit("setIsPosting", true);
|
commit("setIsPosting", true);
|
||||||
|
|
||||||
// console.log('the social action', payload);
|
// console.log('the social action', payload);
|
||||||
|
Reference in New Issue
Block a user