Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 20 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import Vue from 'vue'; |
||
2 | import VueEvents from 'vue-events'; |
||
3 | import ShortlinksTable from '@/vue/ShortlinksTable.vue'; |
||
4 | |||
5 | Vue.use(VueEvents); |
||
6 | // Create our vue instance |
||
7 | new Vue({ |
||
|
|||
8 | el: "#cp-nav-content", |
||
9 | components: { |
||
10 | 'shortlinks-table': ShortlinksTable, |
||
11 | }, |
||
12 | mounted() { |
||
13 | this.$events.$on('refresh-table', eventData => this.onTableRefresh(eventData)); |
||
14 | }, |
||
15 | methods: { |
||
16 | onTableRefresh(vuetable) { |
||
17 | Vue.nextTick(() => vuetable.refresh()); |
||
18 | } |
||
19 | }, |
||
20 | }); |
||
21 | |||
28 |