mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-25 08:05:00 +00:00
eslint fixes
This commit is contained in:
@@ -169,7 +169,10 @@
|
|||||||
$emit('removeDocument', d)
|
$emit('removeDocument', d)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<i class="fa fa-trash-o" aria-hidden="true"></i>
|
<i
|
||||||
|
class="fa fa-trash-o"
|
||||||
|
aria-hidden="true"
|
||||||
|
></i>
|
||||||
{{
|
{{
|
||||||
trans(
|
trans(
|
||||||
EVALUATION_DOCUMENT_DELETE,
|
EVALUATION_DOCUMENT_DELETE,
|
||||||
@@ -208,15 +211,17 @@
|
|||||||
d,
|
d,
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<i class="fa fa-copy" aria-hidden="true"></i>
|
<i
|
||||||
|
class="fa fa-copy"
|
||||||
|
aria-hidden="true"
|
||||||
|
></i>
|
||||||
{{
|
{{
|
||||||
trans(
|
trans(
|
||||||
EVALUATION_DOCUMENT_DUPLICATE_HERE,
|
EVALUATION_DOCUMENT_DUPLICATE_HERE,
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
</a
|
</a>
|
||||||
>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
@@ -226,8 +231,11 @@
|
|||||||
d,
|
d,
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<i class="fa fa-copy" aria-hidden="true"></i>
|
<i
|
||||||
|
class="fa fa-copy"
|
||||||
|
aria-hidden="true"
|
||||||
|
></i>
|
||||||
{{
|
{{
|
||||||
trans(
|
trans(
|
||||||
EVALUATION_DOCUMENT_DUPLICATE_TO_OTHER_EVALUATION,
|
EVALUATION_DOCUMENT_DUPLICATE_TO_OTHER_EVALUATION,
|
||||||
@@ -247,8 +255,11 @@
|
|||||||
@click="
|
@click="
|
||||||
prepareDocumentMoveToWork(d)
|
prepareDocumentMoveToWork(d)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<i class="fa fa-arrows" aria-hidden="true"></i>
|
<i
|
||||||
|
class="fa fa-arrows"
|
||||||
|
aria-hidden="true"
|
||||||
|
></i>
|
||||||
{{
|
{{
|
||||||
trans(
|
trans(
|
||||||
EVALUATION_DOCUMENT_MOVE,
|
EVALUATION_DOCUMENT_MOVE,
|
||||||
@@ -297,7 +308,12 @@ import {
|
|||||||
import { ref, watch } from "vue";
|
import { ref, watch } from "vue";
|
||||||
import AccompanyingPeriodWorkSelectorModal from "ChillPersonAssets/vuejs/_components/AccompanyingPeriodWorkSelector/AccompanyingPeriodWorkSelectorModal.vue";
|
import AccompanyingPeriodWorkSelectorModal from "ChillPersonAssets/vuejs/_components/AccompanyingPeriodWorkSelector/AccompanyingPeriodWorkSelectorModal.vue";
|
||||||
|
|
||||||
defineProps(["documents", "docAnchorId", "accompanyingPeriodId", "accompanyingPeriodWorkId"]);
|
defineProps([
|
||||||
|
"documents",
|
||||||
|
"docAnchorId",
|
||||||
|
"accompanyingPeriodId",
|
||||||
|
"accompanyingPeriodWorkId",
|
||||||
|
]);
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
"inputDocumentTitle",
|
"inputDocumentTitle",
|
||||||
"removeDocument",
|
"removeDocument",
|
||||||
|
@@ -75,7 +75,7 @@ import {
|
|||||||
ACPW_DUPLICATE_SELECT_ACCOMPANYING_PERIOD_WORK,
|
ACPW_DUPLICATE_SELECT_ACCOMPANYING_PERIOD_WORK,
|
||||||
CONFIRM,
|
CONFIRM,
|
||||||
} from "translator";
|
} from "translator";
|
||||||
import {fetchResults, makeFetch} from "ChillMainAssets/lib/api/apiMethods";
|
import { fetchResults } from "ChillMainAssets/lib/api/apiMethods";
|
||||||
import AccompanyingPeriodWorkEvaluationList from "ChillPersonAssets/vuejs/_components/AccompanyingPeriodWorkSelector/AccompanyingPeriodWorkEvaluationList.vue";
|
import AccompanyingPeriodWorkEvaluationList from "ChillPersonAssets/vuejs/_components/AccompanyingPeriodWorkSelector/AccompanyingPeriodWorkEvaluationList.vue";
|
||||||
import { AccompanyingPeriodWorkEvaluation } from "../../../types";
|
import { AccompanyingPeriodWorkEvaluation } from "../../../types";
|
||||||
|
|
||||||
@@ -86,9 +86,9 @@ const accompanyingPeriodWorks = ref<AccompanyingPeriodWork[]>([]);
|
|||||||
const evaluations = ref<AccompanyingPeriodWorkEvaluation[]>([]);
|
const evaluations = ref<AccompanyingPeriodWorkEvaluation[]>([]);
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
accompanyingPeriodId: string,
|
accompanyingPeriodId: string;
|
||||||
isEvaluationSelector: boolean,
|
isEvaluationSelector: boolean;
|
||||||
ignoreAccompanyingPeriodWorkIds: number[],
|
ignoreAccompanyingPeriodWorkIds: number[];
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
@@ -109,15 +109,17 @@ onMounted(() => {
|
|||||||
const getAccompanyingPeriodWorks = async (periodId: number) => {
|
const getAccompanyingPeriodWorks = async (periodId: number) => {
|
||||||
const url = `/api/1.0/person/accompanying-course/${periodId}/works.json`;
|
const url = `/api/1.0/person/accompanying-course/${periodId}/works.json`;
|
||||||
|
|
||||||
const accompanyingPeriodWorksFetched = await fetchResults<AccompanyingPeriodWork>(url);
|
const accompanyingPeriodWorksFetched =
|
||||||
|
await fetchResults<AccompanyingPeriodWork>(url);
|
||||||
if (props.isEvaluationSelector) {
|
if (props.isEvaluationSelector) {
|
||||||
accompanyingPeriodWorks.value = accompanyingPeriodWorksFetched.filter(
|
accompanyingPeriodWorks.value = accompanyingPeriodWorksFetched.filter(
|
||||||
(acpw: AccompanyingPeriodWork) => acpw.accompanyingPeriodWorkEvaluations.length > 0
|
(acpw: AccompanyingPeriodWork) =>
|
||||||
&& typeof acpw.id !== "undefined"
|
acpw.accompanyingPeriodWorkEvaluations.length > 0 &&
|
||||||
&& !props.ignoreAccompanyingPeriodWorkIds.includes(acpw.id),
|
typeof acpw.id !== "undefined" &&
|
||||||
|
!props.ignoreAccompanyingPeriodWorkIds.includes(acpw.id),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
accompanyingPeriodWorks.value = accompanyingPeriodWorksFetched
|
accompanyingPeriodWorks.value = accompanyingPeriodWorksFetched;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user