Commit d67ab685 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Set Groups Vue app for Dashboard page

parent 1dc2b469
import Vue from 'vue';
import GroupsStore from './stores/groups_store';
$(() => { $(() => {
// Groups bundle const groupsStore = new GroupsStore();
const GroupsApp = new Vue({
el: document.querySelector('.js-groups-list-holder'),
data: groupsStore,
});
}); });
export default class GroupsStore {
constructor() {
this.groups = [];
}
}
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
- header_title "Groups", dashboard_groups_path - header_title "Groups", dashboard_groups_path
= render 'dashboard/groups_head' = render 'dashboard/groups_head'
= page_specific_javascript_bundle_tag('common_vue')
= page_specific_javascript_bundle_tag('groups') = page_specific_javascript_bundle_tag('groups')
- if @groups.empty? - if @groups.empty?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment