add icon to allow expand collapsed (status-related) notifications

This commit is contained in:
Henry Jameson 2022-12-19 22:20:15 +02:00
commit efdcfedfbe
3 changed files with 33 additions and 8 deletions

View file

@ -20,7 +20,9 @@ import {
faUserPlus,
faEyeSlash,
faUser,
faSuitcaseRolling
faSuitcaseRolling,
faExpandAlt,
faCompressAlt
} from '@fortawesome/free-solid-svg-icons'
library.add(
@ -31,13 +33,15 @@ library.add(
faUserPlus,
faUser,
faEyeSlash,
faSuitcaseRolling
faSuitcaseRolling,
faExpandAlt,
faCompressAlt
)
const Notification = {
data () {
return {
userExpanded: false,
statusExpanded: false,
betterShadow: this.$store.state.interface.browserSupport.cssFilter,
unmuted: false
}
@ -55,8 +59,9 @@ const Notification = {
UserLink
},
methods: {
toggleUserExpanded () {
this.userExpanded = !this.userExpanded
toggleStatusExpanded () {
console.log('as')
this.statusExpanded = !this.statusExpanded
},
generateUserProfileLink (user) {
return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)