changes sort arrow icons

This commit is contained in:
buttle 2021-11-10 14:41:46 +01:00
parent 9e69400142
commit e1aad4ecd1
1 changed files with 8 additions and 5 deletions

View File

@ -126,8 +126,8 @@ This file is part of ArciveList.
import axios from 'axios';
import { mapMutations, mapGetters } from 'vuex'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { faSortAlphaUp } from '@fortawesome/free-solid-svg-icons'
import { faSortAlphaDown } from '@fortawesome/free-solid-svg-icons'
import { faLongArrowAltUp } from '@fortawesome/free-solid-svg-icons'
import { faLongArrowAltDown } from '@fortawesome/free-solid-svg-icons'
import Search from './search.vue';
export default {
name: "List",
@ -139,8 +139,11 @@ export default {
return {
columns_order: {'title': 'asc', 'artist': 'asc', 'collection': 'asc', 'date': 'asc'},
active_column: 'date',
faSortAlphaUp: faSortAlphaUp,
faSortAlphaDown: faSortAlphaDown,
//faSortAlphaUp: faSortAlphaUp,
//faSortAlphaDown: faSortAlphaDown,
faLongArrowAltUp: faLongArrowAltUp,
faLongArrowAltDown: faLongArrowAltDown,
//faArrowsV: faArrowsV,
};
},
created() {
@ -169,7 +172,7 @@ export default {
return name == this.active_column ? true : false
},
getOrderIcon: function(name) {
return this.columns_order[name] == 'asc' ? faSortAlphaUp : faSortAlphaDown
return this.columns_order[name] == 'asc' ? faLongArrowAltUp : faLongArrowAltDown
},
loadMoreSites() {
console.log('loading')