diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-29 12:27:13 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-29 12:27:13 +0900 |
| commit | 3682c0069c1dee698fbd54adce65ec5316841fa1 (patch) | |
| tree | a724eaffa5dd756f28ca2be4ffc9765bd9b24044 | |
| parent | test (diff) | |
| download | misskey-3682c0069c1dee698fbd54adce65ec5316841fa1.tar.gz misskey-3682c0069c1dee698fbd54adce65ec5316841fa1.tar.bz2 misskey-3682c0069c1dee698fbd54adce65ec5316841fa1.zip | |
Revert "test"
This reverts commit 2b42e8f171e0a030af52ae9b00129282a13479c1.
| -rw-r--r-- | packages/frontend/src/components/MkNotifications.vue | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/packages/frontend/src/components/MkNotifications.vue b/packages/frontend/src/components/MkNotifications.vue index 80ae5899ec..21f1967bfa 100644 --- a/packages/frontend/src/components/MkNotifications.vue +++ b/packages/frontend/src/components/MkNotifications.vue @@ -4,21 +4,23 @@ SPDX-License-Identifier: AGPL-3.0-only --> <template> -<MkPagination ref="pagingComponent" :pagination="pagination"> - <template #empty> - <div class="_fullinfo"> - <img :src="infoImageUrl" draggable="false"/> - <div>{{ i18n.ts.noNotifications }}</div> - </div> - </template> +<MkPullToRefresh :refresher="() => reload()"> + <MkPagination ref="pagingComponent" :pagination="pagination"> + <template #empty> + <div class="_fullinfo"> + <img :src="infoImageUrl" draggable="false"/> + <div>{{ i18n.ts.noNotifications }}</div> + </div> + </template> - <template #default="{ items: notifications }"> - <MkDateSeparatedList v-slot="{ item: notification }" :class="$style.list" :items="notifications" :noGap="true"> - <MkNote v-if="['reply', 'quote', 'mention'].includes(notification.type)" :key="notification.id + ':note'" :note="notification.note" :withHardMute="true"/> - <XNotification v-else :key="notification.id" :notification="notification" :withTime="true" :full="true" class="_panel"/> - </MkDateSeparatedList> - </template> -</MkPagination> + <template #default="{ items: notifications }"> + <MkDateSeparatedList v-slot="{ item: notification }" :class="$style.list" :items="notifications" :noGap="true"> + <MkNote v-if="['reply', 'quote', 'mention'].includes(notification.type)" :key="notification.id + ':note'" :note="notification.note" :withHardMute="true"/> + <XNotification v-else :key="notification.id" :notification="notification" :withTime="true" :full="true" class="_panel"/> + </MkDateSeparatedList> + </template> + </MkPagination> +</MkPullToRefresh> </template> <script lang="ts" setup> |