mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
privateComment for action (not working yet)
This commit is contained in:
parent
4dc56db018
commit
c56a125a78
@ -470,6 +470,14 @@ export default {
|
|||||||
this.$store.commit('setNote', v);
|
this.$store.commit('setNote', v);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
privateComment: {
|
||||||
|
get() {
|
||||||
|
return this.$store.state.privateComment;
|
||||||
|
},
|
||||||
|
set(v) {
|
||||||
|
this.$store.commit('setPrivateComment', v);
|
||||||
|
}
|
||||||
|
},
|
||||||
availableForCheckGoal() {
|
availableForCheckGoal() {
|
||||||
let pickedIds = this.$store.state.goalsPicked.map(g => g.goal.id);
|
let pickedIds = this.$store.state.goalsPicked.map(g => g.goal.id);
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ const store = createStore({
|
|||||||
endDate: window.accompanyingCourseWork.endDate !== null ?
|
endDate: window.accompanyingCourseWork.endDate !== null ?
|
||||||
ISOToDatetime(window.accompanyingCourseWork.endDate.datetime) : null,
|
ISOToDatetime(window.accompanyingCourseWork.endDate.datetime) : null,
|
||||||
note: window.accompanyingCourseWork.note,
|
note: window.accompanyingCourseWork.note,
|
||||||
|
privateComment: window.accompanyingCourseWork.privateComment,
|
||||||
goalsPicked: window.accompanyingCourseWork.goals,
|
goalsPicked: window.accompanyingCourseWork.goals,
|
||||||
goalsForAction: [],
|
goalsForAction: [],
|
||||||
resultsPicked: window.accompanyingCourseWork.results,
|
resultsPicked: window.accompanyingCourseWork.results,
|
||||||
@ -79,6 +80,7 @@ const store = createStore({
|
|||||||
datetime: datetimeToISO(state.endDate)
|
datetime: datetimeToISO(state.endDate)
|
||||||
},
|
},
|
||||||
note: state.note,
|
note: state.note,
|
||||||
|
privateComment: state.privateComment,
|
||||||
persons: state.personsPicked.map(p => ({id: p.id, type: p.type})),
|
persons: state.personsPicked.map(p => ({id: p.id, type: p.type})),
|
||||||
handlingThierParty: state.handlingThirdParty === null ? null : {
|
handlingThierParty: state.handlingThirdParty === null ? null : {
|
||||||
id: state.handlingThirdParty.id,
|
id: state.handlingThirdParty.id,
|
||||||
@ -296,6 +298,9 @@ const store = createStore({
|
|||||||
setNote(state, note) {
|
setNote(state, note) {
|
||||||
state.note = note;
|
state.note = note;
|
||||||
},
|
},
|
||||||
|
setPrivateComment(state, privateComment) {
|
||||||
|
state.privateComment = privateComment;
|
||||||
|
},
|
||||||
setHandlingThirdParty(state, thirdParty) {
|
setHandlingThirdParty(state, thirdParty) {
|
||||||
state.handlingThirdParty = thirdParty;
|
state.handlingThirdParty = thirdParty;
|
||||||
},
|
},
|
||||||
@ -453,6 +458,8 @@ const store = createStore({
|
|||||||
;
|
;
|
||||||
commit('setIsPosting', true);
|
commit('setIsPosting', true);
|
||||||
|
|
||||||
|
console.log('payload', payload);
|
||||||
|
|
||||||
return makeFetch('PUT', url, payload)
|
return makeFetch('PUT', url, payload)
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (typeof(callback) !== 'undefined') {
|
if (typeof(callback) !== 'undefined') {
|
||||||
|
@ -223,6 +223,8 @@ components:
|
|||||||
- "accompanying_period_work"
|
- "accompanying_period_work"
|
||||||
note:
|
note:
|
||||||
type: string
|
type: string
|
||||||
|
privateComment:
|
||||||
|
type: string
|
||||||
startDate:
|
startDate:
|
||||||
$ref: "#/components/schemas/Date"
|
$ref: "#/components/schemas/Date"
|
||||||
endDate:
|
endDate:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user