mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-05 08:14:12 +09:00
サーバーから切断されましたのダイアログは時間をおいて表示するように (#5916)
* timeout disconnect dialog * 70ms * 150ms
This commit is contained in:
@ -247,11 +247,15 @@ export default Vue.extend({
|
||||
}
|
||||
|
||||
this.$root.stream.on('_disconnected_', () => {
|
||||
if (!this.disconnectedDialog) {
|
||||
if (this.$store.state.device.autoReload) {
|
||||
location.reload();
|
||||
return;
|
||||
}
|
||||
if (this.disconnectedDialog) return;
|
||||
if (this.$store.state.device.autoReload) {
|
||||
location.reload();
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
if (this.$root.stream.state !== 'reconnecting') return;
|
||||
|
||||
this.disconnectedDialog = this.$root.dialog({
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
@ -263,7 +267,7 @@ export default Vue.extend({
|
||||
}
|
||||
this.disconnectedDialog = null;
|
||||
});
|
||||
}
|
||||
}, 150)
|
||||
});
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user