34 lines
653 B
JavaScript
34 lines
653 B
JavaScript
|
import { mapState } from 'vuex'
|
||
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||
|
import {
|
||
|
faUsers,
|
||
|
faGlobe,
|
||
|
faBookmark,
|
||
|
faEnvelope,
|
||
|
faHome
|
||
|
} from '@fortawesome/free-solid-svg-icons'
|
||
|
|
||
|
library.add(
|
||
|
faUsers,
|
||
|
faGlobe,
|
||
|
faBookmark,
|
||
|
faEnvelope,
|
||
|
faHome
|
||
|
)
|
||
|
|
||
|
const ListsMenuContent = {
|
||
|
created () {
|
||
|
this.$store.dispatch('startFetchingLists')
|
||
|
},
|
||
|
computed: {
|
||
|
...mapState({
|
||
|
lists: state => state.lists.allLists,
|
||
|
currentUser: state => state.users.currentUser,
|
||
|
privateMode: state => state.instance.private,
|
||
|
federating: state => state.instance.federating
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default ListsMenuContent
|