summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/whats_new/components/app.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/whats_new/components/app.vue')
-rw-r--r--app/assets/javascripts/whats_new/components/app.vue25
1 files changed, 24 insertions, 1 deletions
diff --git a/app/assets/javascripts/whats_new/components/app.vue b/app/assets/javascripts/whats_new/components/app.vue
index d974556cb9e..9a06383a57b 100644
--- a/app/assets/javascripts/whats_new/components/app.vue
+++ b/app/assets/javascripts/whats_new/components/app.vue
@@ -6,8 +6,26 @@ export default {
components: {
GlDrawer,
},
+ props: {
+ features: {
+ type: String,
+ required: false,
+ default: null,
+ },
+ },
computed: {
...mapState(['open']),
+ parsedFeatures() {
+ let features;
+
+ try {
+ features = JSON.parse(this.$props.features) || [];
+ } catch (err) {
+ features = [];
+ }
+
+ return features;
+ },
},
methods: {
...mapActions(['closeDrawer']),
@@ -22,7 +40,12 @@ export default {
<h4>{{ __("What's new at GitLab") }}</h4>
</template>
<template>
- <div></div>
+ <ul>
+ <li v-for="feature in parsedFeatures" :key="feature.title">
+ <h5>{{ feature.title }}</h5>
+ <p>{{ feature.body }}</p>
+ </li>
+ </ul>
</template>
</gl-drawer>
</div>