summaryrefslogtreecommitdiff
path: root/packages/frontend/src/ui/_common_
diff options
context:
space:
mode:
author_ <phy.public@gmail.com>2023-10-30 09:12:20 +0900
committerGitHub <noreply@github.com>2023-10-30 09:12:20 +0900
commitc239058624dcd880ec1c5f3c436f3a2a06fc22c3 (patch)
tree1ffe780569e2535337d3bebdff1d562b90922dcf /packages/frontend/src/ui/_common_
parentfix(backend): プロフィールの自己紹介欄のMFMを連合するよう... (diff)
downloadmisskey-c239058624dcd880ec1c5f3c436f3a2a06fc22c3.tar.gz
misskey-c239058624dcd880ec1c5f3c436f3a2a06fc22c3.tar.bz2
misskey-c239058624dcd880ec1c5f3c436f3a2a06fc22c3.zip
feat(frontend): スワイプやボタンでタイムラインを再読込する機能 (#12113)
* pc reloading * add: disable TL websocket option * fix: stream disconnect when reload * add: pull to refresh * fix: pull to refresh * add changelog * fact: change to disableStreamingTimeline * lint * remove: en-US text * refactor * refactor * add license identifier * tweak * Update MkPullToRefresh.vue * Update MkPullToRefresh.vue * change name timeoutHeartBeat * tweak * :art: --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/frontend/src/ui/_common_')
-rw-r--r--packages/frontend/src/ui/_common_/stream-indicator.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/frontend/src/ui/_common_/stream-indicator.vue b/packages/frontend/src/ui/_common_/stream-indicator.vue
index b09221f5d2..c3107b4e40 100644
--- a/packages/frontend/src/ui/_common_/stream-indicator.vue
+++ b/packages/frontend/src/ui/_common_/stream-indicator.vue
@@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { onUnmounted } from 'vue';
-import { useStream } from '@/stream.js';
+import { useStream, isReloading } from '@/stream.js';
import { i18n } from '@/i18n.js';
import MkButton from '@/components/MkButton.vue';
import * as os from '@/os.js';
@@ -26,6 +26,7 @@ const zIndex = os.claimZIndex('high');
let hasDisconnected = $ref(false);
function onDisconnected() {
+ if (isReloading) return;
hasDisconnected = true;
}