mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
add reactives social issues in banner
This commit is contained in:
parent
69ecc42055
commit
11a6d08023
@ -28,15 +28,14 @@ import Confirm from './components/Confirm.vue';
|
|||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
components: {
|
components: {
|
||||||
//Banner,
|
Banner,
|
||||||
//StickyNav,
|
PersonsAssociated,
|
||||||
//PersonsAssociated,
|
Requestor,
|
||||||
//Requestor,
|
|
||||||
SocialIssue,
|
SocialIssue,
|
||||||
//Referrer, // fait foirer socialissues
|
//Referrer, //fait foirer socialissues
|
||||||
//Resources,
|
Resources,
|
||||||
//Comment,
|
Comment,
|
||||||
//Confirm,
|
Confirm,
|
||||||
},
|
},
|
||||||
computed: mapState([
|
computed: mapState([
|
||||||
'accompanyingCourse', 'socialIssueOptions'
|
'accompanyingCourse', 'socialIssueOptions'
|
||||||
|
@ -45,20 +45,26 @@
|
|||||||
</teleport>
|
</teleport>
|
||||||
|
|
||||||
<teleport to="#header-accompanying_course-details #banner-social-issues">
|
<teleport to="#header-accompanying_course-details #banner-social-issues">
|
||||||
<div class="grid-4">{{ $t('social_issue.title') }}</div>
|
<div class="grid-12">
|
||||||
<div class="grid-4">_</div>
|
<social-issues
|
||||||
<div class="grid-4">_</div>
|
v-for="issue in accompanyingCourse.socialIssues"
|
||||||
|
v-bind:key="issue.id"
|
||||||
|
v-bind:issue="issue">
|
||||||
|
</social-issues>
|
||||||
|
</div>
|
||||||
</teleport>
|
</teleport>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ToggleFlags from './ToggleFlags';
|
import ToggleFlags from './ToggleFlags';
|
||||||
|
import SocialIssues from './Banner/SocialIssues.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Banner',
|
name: 'Banner',
|
||||||
components: {
|
components: {
|
||||||
ToggleFlags
|
ToggleFlags,
|
||||||
|
SocialIssues
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
accompanyingCourse() {
|
accompanyingCourse() {
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
<template>
|
||||||
|
<span class="badge badge-secondary">{{ issue.text }}</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "SocialIssues",
|
||||||
|
props: ['issue']
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
span.badge {
|
||||||
|
margin-right: 1em;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
x
Reference in New Issue
Block a user