diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-12-22 10:48:01 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-12-22 10:48:01 +0000 |
| commit | 515dcfd3395ce4c6bd228e6bfc20120de78976c1 (patch) | |
| tree | a0da28a24e6cd146cb1465a56530231b85df5783 /src/components/notification/notification.js | |
| parent | cb175d3f65ea79acc54949a3e33e926ce1357733 (diff) | |
| parent | 8a594e2f98f49eeff105de9c956764c15a0ef80a (diff) | |
Merge branch 'expand-notifications' into 'develop'
add icon to allow expand collapsed (status-related) notifications
Closes #1224
See merge request pleroma/pleroma-fe!1701
Diffstat (limited to 'src/components/notification/notification.js')
| -rw-r--r-- | src/components/notification/notification.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index ddba560e..265aaee0 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,8 @@ const Notification = { UserLink }, methods: { - toggleUserExpanded () { - this.userExpanded = !this.userExpanded + toggleStatusExpanded () { + this.statusExpanded = !this.statusExpanded }, generateUserProfileLink (user) { return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames) |
