mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-08 14:29:42 +00:00
JS corrections in ChillPersonBundle required by ESLint
This commit is contained in:
@@ -514,7 +514,6 @@
|
||||
|
||||
<script>
|
||||
import {mapState, mapGetters,} from 'vuex';
|
||||
import {dateToISO, ISOToDate, ISOToDatetime} from 'ChillMainAssets/chill/js/date';
|
||||
import CKEditor from '@ckeditor/ckeditor5-vue';
|
||||
import ClassicEditor from 'ChillMainAssets/module/ckeditor5/editor_config';
|
||||
import AddResult from './components/AddResult.vue';
|
||||
@@ -524,7 +523,6 @@ import ThirdPartyRenderBox from 'ChillThirdPartyAssets/vuejs/_components/Entity/
|
||||
import OnTheFly from 'ChillMainAssets/vuejs/OnTheFly/components/OnTheFly.vue';
|
||||
import ListWorkflowModal from 'ChillMainAssets/vuejs/_components/EntityWorkflow/ListWorkflowModal.vue';
|
||||
import PersonText from 'ChillPersonAssets/vuejs/_components/Entity/PersonText.vue';
|
||||
import {buildLinkCreate} from 'ChillMainAssets/lib/entity-workflow/api.js';
|
||||
import { makeFetch } from 'ChillMainAssets/lib/api/apiMethods';
|
||||
|
||||
const i18n = {
|
||||
@@ -757,7 +755,7 @@ export default {
|
||||
},
|
||||
goToGenerateWorkflow({link}) {
|
||||
// console.log('save before leave to generate workflow')
|
||||
const callback = (data) => {
|
||||
const callback = () => {
|
||||
window.location.assign(link);
|
||||
};
|
||||
|
||||
@@ -766,7 +764,7 @@ export default {
|
||||
},
|
||||
goToGenerateNotification(tos) {
|
||||
console.log('save before leave to notification');
|
||||
const callback = (data) => {
|
||||
const callback = () => {
|
||||
if (tos === true) {
|
||||
window.location.assign(`/fr/notification/create?entityClass=Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork&entityId=${this.work.id}&tos[0]=${this.work.accompanyingPeriod.user.id}&returnPath=/fr/person/accompanying-period/${this.work.accompanyingPeriod.id}/work`);
|
||||
} else {
|
||||
|
@@ -143,13 +143,13 @@ export default {
|
||||
this.$store.commit('removeEvaluation', e);
|
||||
return;
|
||||
},
|
||||
toggleEditEvaluation(e) {
|
||||
toggleEditEvaluation() {
|
||||
this.$store.commit('toggleEvaluationEdit', { key: this.evaluation.key });
|
||||
},
|
||||
submitForm() {
|
||||
this.toggleEditEvaluation();
|
||||
},
|
||||
goToGenerateWorkflow({event, link, workflowName}) {
|
||||
goToGenerateWorkflow({workflowName}) {
|
||||
const callback = (data) => {
|
||||
let evaluationId = data.accompanyingPeriodWorkEvaluations.find(e => e.key === this.evaluation.key).id;
|
||||
window.location.assign(buildLinkCreate(workflowName,
|
||||
|
@@ -82,7 +82,8 @@
|
||||
{{ $t('select_time_spent') }}
|
||||
</option>
|
||||
<option
|
||||
v-for="time in timeSpentChoices"
|
||||
v-for="(time, index) in timeSpentChoices"
|
||||
:key="index"
|
||||
:value="time.value"
|
||||
>
|
||||
{{ time.text }}
|
||||
|
Reference in New Issue
Block a user