1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-18 00:29:04 +09:00

fix: Fix Disconnected notification not showing again, Fix no transition-leave animation

This commit is contained in:
NoriDev 2022-09-09 00:02:44 +09:00
parent b8b9d36d63
commit bb6bf6d995

View File

@ -1,6 +1,6 @@
<template> <template>
<transition v-if="showing && hasDisconnected && $store.state.serverDisconnectedBehavior === 'quiet'" :name="$store.state.animation && isFriendly ? 'friendly' : ''" appear> <transition v-if="hasDisconnected && $store.state.serverDisconnectedBehavior === 'quiet'" :name="$store.state.animation && isFriendly ? 'friendly' : ''" appear>
<div class="nsbbhtug" :class="{ friendly: isFriendly }" @click="resetDisconnected"> <div v-if="showing" class="nsbbhtug" :class="{ friendly: isFriendly }" @click="resetDisconnected">
<div class="text">{{ i18n.ts.disconnectedFromServer }}</div> <div class="text">{{ i18n.ts.disconnectedFromServer }}</div>
<div class="command"> <div class="command">
<button class="_textButton" @click="reload">{{ i18n.ts.reload }}</button> <button class="_textButton" @click="reload">{{ i18n.ts.reload }}</button>
@ -29,6 +29,7 @@ function timeout() {
function clearTimeout() { function clearTimeout() {
window.clearTimeout(currentTimeout); window.clearTimeout(currentTimeout);
showing = true;
} }
function onDisconnected() { function onDisconnected() {