mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-09 01:09:51 +00:00
Add changie and linter fixes
This commit is contained in:
parent
8c8c16c1a1
commit
17db571244
6
.changes/unreleased/Fixed-20250227-161754.yaml
Normal file
6
.changes/unreleased/Fixed-20250227-161754.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixed
|
||||||
|
body: Use fetchResults method to fetch all social issues instead of only the first page
|
||||||
|
time: 2025-02-27T16:17:54.678560051+01:00
|
||||||
|
custom:
|
||||||
|
Issue: ""
|
||||||
|
SchemaChange: No schema change
|
@ -160,9 +160,8 @@ export default {
|
|||||||
/* Add in list the issues already associated (if not yet listed) */
|
/* Add in list the issues already associated (if not yet listed) */
|
||||||
this.socialIssuesSelected.forEach((issue) => {
|
this.socialIssuesSelected.forEach((issue) => {
|
||||||
if (
|
if (
|
||||||
this.socialIssuesList.filter(
|
this.socialIssuesList.filter((i) => i.id === issue.id)
|
||||||
(i) => i.id === issue.id
|
.length !== 1
|
||||||
).length !== 1
|
|
||||||
) {
|
) {
|
||||||
this.$store.commit("addIssueInList", issue);
|
this.$store.commit("addIssueInList", issue);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {fetchResults} from "ChillMainAssets/lib/api/apiMethods.ts";
|
import { fetchResults } from "ChillMainAssets/lib/api/apiMethods.ts";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Endpoint v.2 chill_api_single_accompanying_course__entity
|
* Endpoint v.2 chill_api_single_accompanying_course__entity
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import VueMultiselect from "vue-multiselect";
|
import VueMultiselect from "vue-multiselect";
|
||||||
import {fetchResults, makeFetch} from "ChillMainAssets/lib/api/apiMethods";
|
import { fetchResults } from "ChillMainAssets/lib/api/apiMethods";
|
||||||
import { mapGetters, mapState } from "vuex";
|
import { mapGetters, mapState } from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -51,9 +51,11 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getOptions() {
|
getOptions() {
|
||||||
fetchResults(`/api/1.0/person/social-work/social-issue.json`).then((response) => {
|
fetchResults(`/api/1.0/person/social-work/social-issue.json`).then(
|
||||||
this.options = response;
|
(response) => {
|
||||||
});
|
this.options = response;
|
||||||
|
},
|
||||||
|
);
|
||||||
},
|
},
|
||||||
updateSocialIssues(value) {
|
updateSocialIssues(value) {
|
||||||
this.$store
|
this.$store
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
} from "ChillMainAssets/chill/js/date";
|
} from "ChillMainAssets/chill/js/date";
|
||||||
import { findSocialActionsBySocialIssue } from "ChillPersonAssets/vuejs/_api/SocialWorkSocialAction.js";
|
import { findSocialActionsBySocialIssue } from "ChillPersonAssets/vuejs/_api/SocialWorkSocialAction.js";
|
||||||
// import { create } from 'ChillPersonAssets/vuejs/_api/AccompanyingCourseWork.js';
|
// import { create } from 'ChillPersonAssets/vuejs/_api/AccompanyingCourseWork.js';
|
||||||
import {fetchResults, makeFetch} from "ChillMainAssets/lib/api/apiMethods";
|
import { fetchResults, makeFetch } from "ChillMainAssets/lib/api/apiMethods";
|
||||||
|
|
||||||
const debug = process.env.NODE_ENV !== "production";
|
const debug = process.env.NODE_ENV !== "production";
|
||||||
|
|
||||||
@ -169,12 +169,12 @@ const store = createStore({
|
|||||||
fetchOtherSocialIssues({ commit }) {
|
fetchOtherSocialIssues({ commit }) {
|
||||||
const url = `/api/1.0/person/social-work/social-issue.json`;
|
const url = `/api/1.0/person/social-work/social-issue.json`;
|
||||||
return fetchResults(url)
|
return fetchResults(url)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
commit("updateIssuesOther", response); // Directly commit the array of issues
|
commit("updateIssuesOther", response); // Directly commit the array of issues
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
throw error;
|
throw error;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user