diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-19 06:26:29 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-19 06:26:29 +0900 |
| commit | 883fc5dde00bc181f2757d6118befd1a5d51d4c7 (patch) | |
| tree | 0ed9fa68ff86079d2c6e4b8753e32ed82a56d21d /src | |
| parent | :art: (diff) | |
| download | sharkey-883fc5dde00bc181f2757d6118befd1a5d51d4c7.tar.gz sharkey-883fc5dde00bc181f2757d6118befd1a5d51d4c7.tar.bz2 sharkey-883fc5dde00bc181f2757d6118befd1a5d51d4c7.zip | |
Improve notification
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/components/notifications.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/components/notifications.vue b/src/client/components/notifications.vue index 3c2eb1bd51..ff6d63821f 100644 --- a/src/client/components/notifications.vue +++ b/src/client/components/notifications.vue @@ -1,7 +1,8 @@ <template> <div class="mk-notifications" :class="{ page }"> <x-list class="notifications" :items="items" v-slot="{ item: notification }"> - <x-notification :notification="notification" :with-time="true" :full="true" class="notification" :class="{ _panel: page }" :key="notification.id"/> + <x-note v-if="['reply', 'quote', 'mention'].includes(notification.type)" :note="notification.note" :key="notification.id"/> + <x-notification v-else :notification="notification" :with-time="true" :full="true" class="notification" :class="{ _panel: page }" :key="notification.id"/> </x-list> <button class="more _button" v-if="more" @click="fetchMore" :disabled="moreFetching"> @@ -22,6 +23,7 @@ import i18n from '../i18n'; import paging from '../scripts/paging'; import XNotification from './notification.vue'; import XList from './date-separated-list.vue'; +import XNote from './note.vue'; export default Vue.extend({ i18n, @@ -29,6 +31,7 @@ export default Vue.extend({ components: { XNotification, XList, + XNote, }, mixins: [ |