diff options
| author | Henry Jameson <me@hjkos.com> | 2022-08-17 20:49:20 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-08-17 20:49:20 +0300 |
| commit | efc6b6b703971acd9cff7bb452a1fad40b801f87 (patch) | |
| tree | 43b8262d6335e00db9d0850f6b51e088db21c263 /src/components/notifications/notifications.vue | |
| parent | 2c76c46aa7aa72cf1894f11e7da3fc6e60caabfa (diff) | |
add "scroll to top" button to timelines and notifications
Diffstat (limited to 'src/components/notifications/notifications.vue')
| -rw-r--r-- | src/components/notifications/notifications.vue | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index e778e27b..16b5e8f6 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -6,6 +6,7 @@ <div :class="{ minimal: minimalMode }" class="Notifications" + ref="root" > <div :class="mainClass"> <div @@ -20,11 +21,20 @@ >{{ unseenCount }}</span> </div> <button + v-if="showScrollTop" + class="button-unstyled scroll-to-top-button" + type="button" + @click="scrollToTop" + > + <FAIcon icon="circle-up" /> + </button> + <button v-if="unseenCount" class="button-default read-button" + type="button" @click.prevent="markAsSeen" > - {{ $t('notifications.read') }} + <FAIcon icon="filter" /> </button> <NotificationFilters /> </div> |
