fix: only show realtime error on non-cloud instances
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
checkPusherInterval = setInterval(() => {
|
checkPusherInterval = setInterval(() => {
|
||||||
if (window.Echo && window.Echo.connector.pusher.connection.state !== 'connected') {
|
if (window.Echo && window.Echo.connector.pusher.connection.state !== 'connected') {
|
||||||
checkNumber++;
|
checkNumber++;
|
||||||
if (checkNumber > 4) {
|
if (checkNumber > 5) {
|
||||||
this.popups.realtime = true;
|
this.popups.realtime = true;
|
||||||
console.error(
|
console.error(
|
||||||
'Coolify could not connect to its real-time service. This will cause unusual problems on the UI if not fixed! Please check the related documentation (https://coolify.io/docs/knowledge-base/cloudflare/tunnels) or get help on Discord (https://coollabs.io/discord).)'
|
'Coolify could not connect to its real-time service. This will cause unusual problems on the UI if not fixed! Please check the related documentation (https://coolify.io/docs/knowledge-base/cloudflare/tunnels) or get help on Discord (https://coollabs.io/discord).)'
|
||||||
@@ -23,31 +23,36 @@
|
|||||||
clearInterval(checkPusherInterval);
|
clearInterval(checkPusherInterval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}">
|
}">
|
||||||
@auth
|
@auth
|
||||||
<span x-show="popups.realtime === true">
|
<span x-show="popups.realtime === true">
|
||||||
<x-popup>
|
@if (!isCloud())
|
||||||
<x-slot:title>
|
<x-popup>
|
||||||
<span class="font-bold text-left text-red-500">WARNING: </span>Realtime Error?!
|
<x-slot:title>
|
||||||
</x-slot:title>
|
<span class="font-bold text-left text-red-500">WARNING: </span>Realtime Error?!
|
||||||
<x-slot:description>
|
</x-slot:title>
|
||||||
<span>Coolify could not connect to its real-time service.<br>This will cause unusual problems on the UI
|
<x-slot:description>
|
||||||
if
|
<span>Coolify could not connect to its real-time service.<br>This will cause unusual problems on the
|
||||||
not fixed! <br><br>
|
UI
|
||||||
Please ensure that you have opened the
|
if
|
||||||
<a class="underline" href='https://coolify.io/docs/knowledge-base/server/firewall' target='_blank'>required ports</a>,
|
not fixed! <br><br>
|
||||||
check the
|
Please ensure that you have opened the
|
||||||
related <a class="underline" href='https://coolify.io/docs/knowledge-base/cloudflare/tunnels'
|
<a class="underline" href='https://coolify.io/docs/knowledge-base/server/firewall'
|
||||||
target='_blank'>documentation</a> or get
|
target='_blank'>required ports</a>,
|
||||||
help on <a class="underline" href='https://coollabs.io/discord' target='_blank'>Discord</a>. </span>
|
check the
|
||||||
</x-slot:description>
|
related <a class="underline" href='https://coolify.io/docs/knowledge-base/cloudflare/tunnels'
|
||||||
<x-slot:button-text @click="disableRealtime()">
|
target='_blank'>documentation</a> or get
|
||||||
Acknowledge & Disable This Popup
|
help on <a class="underline" href='https://coollabs.io/discord' target='_blank'>Discord</a>.
|
||||||
</x-slot:button-text>
|
</span>
|
||||||
</x-popup>
|
</x-slot:description>
|
||||||
|
<x-slot:button-text @click="disableRealtime()">
|
||||||
|
Acknowledge & Disable This Popup
|
||||||
|
</x-slot:button-text>
|
||||||
|
</x-popup>
|
||||||
|
@endif
|
||||||
</span>
|
</span>
|
||||||
@endauth
|
@endauth
|
||||||
<span x-show="popups.sponsorship">
|
<span x-show="popups.sponsorship">
|
||||||
|
|||||||
Reference in New Issue
Block a user