summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/components/notifications.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-16 03:46:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-16 03:46:53 +0900
commit7d768875176e38be394806376997055ee387f56f (patch)
tree78c0adf2089b81e586324ad797e5e2c685706c5c /src/client/app/desktop/views/components/notifications.vue
parent8.41.0 (diff)
downloadmisskey-7d768875176e38be394806376997055ee387f56f.tar.gz
misskey-7d768875176e38be394806376997055ee387f56f.tar.bz2
misskey-7d768875176e38be394806376997055ee387f56f.zip
アニメーションを無効にするオプションを実装
Diffstat (limited to 'src/client/app/desktop/views/components/notifications.vue')
-rw-r--r--src/client/app/desktop/views/components/notifications.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/desktop/views/components/notifications.vue b/src/client/app/desktop/views/components/notifications.vue
index 9d0e73adef..0debd3f824 100644
--- a/src/client/app/desktop/views/components/notifications.vue
+++ b/src/client/app/desktop/views/components/notifications.vue
@@ -2,7 +2,7 @@
<div class="mk-notifications">
<div class="notifications" v-if="notifications.length != 0">
<!-- トランジションを有効にするとなぜかメモリリークする -->
- <transition-group name="mk-notifications" class="transition" tag="div">
+ <component :is="$store.state.device.animations ? 'transition-group' : 'div'" name="mk-notifications" class="transition" tag="div">
<template v-for="(notification, i) in _notifications">
<div class="notification" :class="notification.type" :key="notification.id">
<mk-time :time="notification.createdAt"/>
@@ -96,7 +96,7 @@
<span>%fa:angle-down%{{ _notifications[i + 1]._datetext }}</span>
</p>
</template>
- </transition-group>
+ </component>
</div>
<button class="more" :class="{ fetching: fetchingMoreNotifications }" v-if="moreNotifications" @click="fetchMoreNotifications" :disabled="fetchingMoreNotifications">
<template v-if="fetchingMoreNotifications">%fa:spinner .pulse .fw%</template>{{ fetchingMoreNotifications ? '%i18n:common.loading%' : '%i18n:@more%' }}