Skip to content

Commit 2c4d495

Browse files
author
Vinayak Kulkarni
committed
Fixed the icon visibility
1 parent 80a2eb2 commit 2c4d495

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ module.exports = {
22

33
template: '<div>\
44
<router-link v-if="data.sorttype === \'desc\'" :to="{ name: routeName, query: { sort: data.sort, sorttype: data.sorttype }}" @click.native="sortData(data.sort, data.sorttype)">\
5-
{{ label }} <i class="chevron down black icon" v-if="data.sort"></i>\
5+
{{ label }} <i class="down black icon" :class="icon" v-if="data.sort === this.$route.query.sort"></i>\
66
</router-link>\
77
<router-link v-if="data.sorttype === \'asc\'" :to="{ name: routeName, query: { sort: data.sort, sorttype: data.sorttype }}" @click.native="sortData(data.sort, data.sorttype)">\
8-
{{ label }} <i class="chevron up black icon" v-if="data.sort"></i>\
8+
{{ label }} <i class="up black icon" :class="icon" v-if="data.sort === this.$route.query.sort"></i>\
99
</router-link>\
1010
</div>',
1111

0 commit comments

Comments
 (0)