diff options
| author | Henry Jameson <me@hjkos.com> | 2022-12-19 22:20:15 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-12-19 22:20:15 +0200 |
| commit | efdcfedfbeabcb71ad1756e993eba6a4c6ac720a (patch) | |
| tree | 7174da075c333974b3dbf7b178c12f32ea49fc70 /src/components/notification/notification.js | |
| parent | bcb24938aa2891b604a5b9285836eb70654c87ea (diff) | |
add icon to allow expand collapsed (status-related) notifications
Diffstat (limited to 'src/components/notification/notification.js')
| -rw-r--r-- | src/components/notification/notification.js | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index ddba560e..3e834bd5 100644 --- a/src/components/notification/notification.js +++ b/src/components/notification/notification.js @@ -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) |
