+ :key="`header-${groupIndex}`"
+ >
@@ -167,6 +171,7 @@ export default {
data: function () {
return {
loaded: false,
+ configNotFound: false,
config: null,
services: null,
offline: false,
@@ -176,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;
@@ -227,6 +237,11 @@ export default {
return;
}
+ if (response.status == 404) {
+ this.configNotFound = true;
+ return {};
+ }
+
if (!response.ok) {
throw Error(`${response.statusText}: ${response.body}`);
}
@@ -249,7 +264,8 @@ export default {
return (
item.name.toLowerCase().includes(this.filter) ||
(item.subtitle && item.subtitle.toLowerCase().includes(this.filter)) ||
- (item.tag && item.tag.toLowerCase().includes(this.filter))
+ (item.tag && item.tag.toLowerCase().includes(this.filter)) ||
+ (item.keywords && item.keywords.toLowerCase().includes(this.filter))
);
},
navigateToFirstService: function (target) {