diff --git a/src/components/InstancesList.vue b/src/components/InstancesList.vue index 28c71fc..b296d95 100644 --- a/src/components/InstancesList.vue +++ b/src/components/InstancesList.vue @@ -115,10 +115,12 @@ -
-
- Sorry, but we cannot fetch the instances list. Please retry later. -
+
+ Sorry, but we cannot fetch the instances list. Please retry later. +
+ +
+ Sorry, but we did not find any instance matching your filters.
@@ -252,6 +254,7 @@ data () { return { error: false, + noResults: false, instances: [], translatedThemes: { @@ -373,6 +376,8 @@ }, fetchInstances () { + this.noResults = false + const params = { start: 0, count: 250, @@ -394,6 +399,8 @@ axios('https://instances.joinpeertube.org/api/v1/instances', options) .then(response => { this.instances = this.shuffle(response.data.data) + + if (this.instances.length === 0) this.noResults = true }) .catch(err => { console.error(err)