mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Add version of the social action to the state
put correct serialization groups
This commit is contained in:
parent
09882bb4be
commit
f00b39980c
@ -247,7 +247,7 @@ class AccompanyingPeriodWork implements AccompanyingPeriodLinkedWithSocialIssues
|
|||||||
/**
|
/**
|
||||||
* @ORM\Column(type="integer", nullable=false, options={"default": 1})
|
* @ORM\Column(type="integer", nullable=false, options={"default": 1})
|
||||||
*
|
*
|
||||||
* @Serializer\Groups({"read", "read:accompanyingPeriodWork:light", "read:evaluation:include-work"})
|
* @Serializer\Groups({"read", "accompanying_period_work:edit"})
|
||||||
*/
|
*/
|
||||||
private int $version = 1;
|
private int $version = 1;
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@
|
|||||||
@go-to-generate-workflow="goToGenerateWorkflow"
|
@go-to-generate-workflow="goToGenerateWorkflow"
|
||||||
></list-workflow-modal>
|
></list-workflow-modal>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<button v-if="AmIRefferer"
|
<button v-if="AmIRefferer"
|
||||||
class="btn btn-notify"
|
class="btn btn-notify"
|
||||||
@ -311,7 +311,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</template>
|
</template>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li v-if="!isPosting">
|
<li v-if="!isPosting">
|
||||||
<button class="btn btn-save" @click="submit">
|
<button class="btn btn-save" @click="submit">
|
||||||
{{ $t('action.save') }}
|
{{ $t('action.save') }}
|
||||||
@ -472,6 +472,7 @@ export default {
|
|||||||
'errors',
|
'errors',
|
||||||
'templatesAvailablesForAction',
|
'templatesAvailablesForAction',
|
||||||
'me',
|
'me',
|
||||||
|
'version'
|
||||||
]),
|
]),
|
||||||
...mapGetters([
|
...mapGetters([
|
||||||
'hasResultsForAction',
|
'hasResultsForAction',
|
||||||
|
@ -35,7 +35,8 @@ const store = createStore({
|
|||||||
referrers: window.accompanyingCourseWork.referrers,
|
referrers: window.accompanyingCourseWork.referrers,
|
||||||
isPosting: false,
|
isPosting: false,
|
||||||
errors: [],
|
errors: [],
|
||||||
me: null
|
me: null,
|
||||||
|
version: window.accompanyingCourseWork.version
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
socialAction(state) {
|
socialAction(state) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user