Skip to content

Commit

Permalink
Fix error when no server is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
6c65726f79 committed Feb 13, 2022
1 parent b89a0cd commit b800b11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/views/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<IonApp>
<IonSplitPane contentId="main-content" :disabled="!sharedState.expandMenu">
<ion-app>
<ion-split-pane contentId="main-content" :disabled="!sharedState.expandMenu">
<ion-menu contentId="main-content" type="overlay" menu-id="left" :swipeGesture="privateState.swipeEnabled" v-on:ionDidClose="closeTrackerList()" v-on:ionDidOpen="Utils.pushState()">

<!-- Main menu -->
Expand Down Expand Up @@ -102,8 +102,8 @@

<!-- Torrent list -->
<List id="main-content"></List>
</IonSplitPane>
</IonApp>
</ion-split-pane>
</ion-app>
</template>

<script lang="ts">
Expand Down Expand Up @@ -532,7 +532,7 @@ export default defineComponent({
async getTorrents(clean=false, refresh=false) {
const isModalOpened = await modalController.getTop();
if(!isModalOpened || clean){
if((!isModalOpened || clean) && this.privateState.connectionStatus.connected){
this.privateState.connectionStatus.loading=true;
if(clean){
this.setRefreshInterval();
Expand Down

0 comments on commit b800b11

Please sign in to comment.