diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-16 03:46:53 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-16 03:46:53 +0900 |
| commit | 7d768875176e38be394806376997055ee387f56f (patch) | |
| tree | 78c0adf2089b81e586324ad797e5e2c685706c5c /src/client/app/desktop/views/components/notifications.vue | |
| parent | 8.41.0 (diff) | |
| download | misskey-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.vue | 4 |
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%' }} |