Passed
Push — develop ( 35967f...ff770f )
by Andrew
04:34
created

???.mounted   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A 0 1 1
1
import Vue from 'vue';
2
import VueEvents from 'vue-events';
3
import RedirectsTable from '../vue/RedirectsTable.vue';
4
5
Vue.use(VueEvents);
6
// Create our vue instance
7
const vm = new Vue({
0 ignored issues
show
Unused Code introduced by
The constant vm seems to be never used. Consider removing it.
Loading history...
8
    el: "#cp-nav-content",
9
    components: {
10
        'redirects-table': RedirectsTable,
11
    },
12
    data: {
13
    },
14
    methods: {
15
        onTableRefresh (vuetable) {
16
            console.log('onTableRefresh');
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
17
            Vue.nextTick( () => vuetable.refresh());
18
        }
19
    },
20
    mounted() {
21
        this.$events.$on('refresh-table', eventData => this.onTableRefresh(eventData));
22
    },
23
});
24