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:
parent
b8b9d36d63
commit
bb6bf6d995
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user