Sync branch magefile with main #104308
@ -17,7 +17,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<farm-status :status="farmStatus.status()" />
|
<farm-status v-if="socketIOConnected" :status="farmStatus.status()" />
|
||||||
<api-spinner />
|
<api-spinner />
|
||||||
<span class="app-version">
|
<span class="app-version">
|
||||||
<a :href="backendURL('/flamenco-addon.zip')">add-on</a>
|
<a :href="backendURL('/flamenco-addon.zip')">add-on</a>
|
||||||
@ -51,6 +51,7 @@ export default {
|
|||||||
flamencoVersion: DEFAULT_FLAMENCO_VERSION,
|
flamencoVersion: DEFAULT_FLAMENCO_VERSION,
|
||||||
backendURL: backendURL,
|
backendURL: backendURL,
|
||||||
farmStatus: useFarmStatus(),
|
farmStatus: useFarmStatus(),
|
||||||
|
socketIOConnected: false,
|
||||||
}),
|
}),
|
||||||
mounted() {
|
mounted() {
|
||||||
window.app = this;
|
window.app = this;
|
||||||
@ -61,6 +62,7 @@ export default {
|
|||||||
this.$watch(
|
this.$watch(
|
||||||
() => sockStatus.isConnected,
|
() => sockStatus.isConnected,
|
||||||
(isConnected) => {
|
(isConnected) => {
|
||||||
|
this.socketIOConnected = isConnected;
|
||||||
if (!isConnected) return;
|
if (!isConnected) return;
|
||||||
if (!sockStatus.wasEverDisconnected) return;
|
if (!sockStatus.wasEverDisconnected) return;
|
||||||
this.socketIOReconnect();
|
this.socketIOReconnect();
|
||||||
|
Loading…
Reference in New Issue
Block a user