@@ -61,7 +64,7 @@
@network-status-update="offline = $event"
/>
-
@@ -168,6 +171,7 @@ export default {
data: function () {
return {
loaded: false,
+ configNotFound: false,
config: null,
services: null,
offline: false,
@@ -177,6 +181,11 @@ export default {
showMenu: false,
};
},
+ computed: {
+ configurationNeeded: function () {
+ return (this.loaded && !this.services) || this.configNotFound;
+ },
+ },
created: async function () {
this.buildDashboard();
window.onhashchange = this.buildDashboard;
@@ -228,6 +237,11 @@ export default {
return;
}
+ if (response.status == 404) {
+ this.configNotFound = true;
+ return {};
+ }
+
if (!response.ok) {
throw Error(`${response.statusText}: ${response.body}`);
}
diff --git a/src/components/GetStarted.vue b/src/components/GetStarted.vue
index dcabc02..c256a0f 100644
--- a/src/components/GetStarted.vue
+++ b/src/components/GetStarted.vue
@@ -6,7 +6,7 @@
Get started
diff --git a/src/components/services/Emby.vue b/src/components/services/Emby.vue
index 25a2612..d2411f0 100644
--- a/src/components/services/Emby.vue
+++ b/src/components/services/Emby.vue
@@ -62,7 +62,7 @@ export default {
this.fetch("/System/info/public")
.then((response) => {
if (response.Id) this.status = "running";
- else throw new Error();
+ else throw new Error();
})
.catch((e) => {
console.log(e);