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 {
|
||||
name: 'App',
|
||||
components: {
|
||||
//Banner,
|
||||
//StickyNav,
|
||||
//PersonsAssociated,
|
||||
//Requestor,
|
||||
Banner,
|
||||
PersonsAssociated,
|
||||
Requestor,
|
||||
SocialIssue,
|
||||
//Referrer, // fait foirer socialissues
|
||||
//Resources,
|
||||
//Comment,
|
||||
//Confirm,
|
||||
//Referrer, //fait foirer socialissues
|
||||
Resources,
|
||||
Comment,
|
||||
Confirm,
|
||||
},
|
||||
computed: mapState([
|
||||
'accompanyingCourse', 'socialIssueOptions'
|
||||
|
@ -45,20 +45,26 @@
|
||||
</teleport>
|
||||
|
||||
<teleport to="#header-accompanying_course-details #banner-social-issues">
|
||||
<div class="grid-4">{{ $t('social_issue.title') }}</div>
|
||||
<div class="grid-4">_</div>
|
||||
<div class="grid-4">_</div>
|
||||
<div class="grid-12">
|
||||
<social-issues
|
||||
v-for="issue in accompanyingCourse.socialIssues"
|
||||
v-bind:key="issue.id"
|
||||
v-bind:issue="issue">
|
||||
</social-issues>
|
||||
</div>
|
||||
</teleport>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ToggleFlags from './ToggleFlags';
|
||||
import SocialIssues from './Banner/SocialIssues.vue';
|
||||
|
||||
export default {
|
||||
name: 'Banner',
|
||||
components: {
|
||||
ToggleFlags
|
||||
ToggleFlags,
|
||||
SocialIssues
|
||||
},
|
||||
computed: {
|
||||
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