mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
Confirm post request, change state step and hide components
This commit is contained in:
@@ -2,18 +2,18 @@
|
||||
<div class="vue-component">
|
||||
<h3>
|
||||
{{ $t('confirm.title') }}
|
||||
<span v-if="accompanyingCourse.step !== 'DRAFT'"
|
||||
class="badge badge-pill badge-primary">
|
||||
{{ $t('course.step.active') }}
|
||||
</span>
|
||||
<span v-else class="badge badge-pill badge-secondary">
|
||||
{{ $t('course.step.draft') }}
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
<p v-if="accompanyingCourse.step === 'DRAFT'">
|
||||
{{ $t('confirm.text_draft') }}
|
||||
</p>
|
||||
<div>
|
||||
<p>
|
||||
{{ $t('confirm.text_draft') }}
|
||||
<span class="badge badge-pill badge-secondary">{{ $t('course.step.draft') }}</span>
|
||||
</p>
|
||||
<p>
|
||||
{{ $t('confirm.text_active') }}
|
||||
<span class="badge badge-pill badge-primary">{{ $t('course.step.active') }}</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<dl v-if="accompanyingCourse.closingDate">
|
||||
<dt>{{ $t('course.closing_date') }}</dt>
|
||||
@@ -44,8 +44,15 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
confirmCourse() {
|
||||
console.log('confirmCourse');
|
||||
console.log('@@ CLICK confirmCourse');
|
||||
this.$store.dispatch('confirmAccompanyingCourse');
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
div.vue-component > div {
|
||||
margin: 1em;
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user