summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/whats_new/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/whats_new/index.js')
-rw-r--r--app/assets/javascripts/whats_new/index.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/app/assets/javascripts/whats_new/index.js b/app/assets/javascripts/whats_new/index.js
index c9ee3404d2a..a6519ab63b1 100644
--- a/app/assets/javascripts/whats_new/index.js
+++ b/app/assets/javascripts/whats_new/index.js
@@ -4,16 +4,21 @@ import Trigger from './components/trigger.vue';
import store from './store';
export default () => {
+ const whatsNewElm = document.getElementById('whats-new-app');
+
// eslint-disable-next-line no-new
new Vue({
- el: document.getElementById('whats-new-app'),
+ el: whatsNewElm,
store,
components: {
App,
},
-
render(createElement) {
- return createElement('app');
+ return createElement('app', {
+ props: {
+ features: whatsNewElm.getAttribute('data-features'),
+ },
+ });
},
});