mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-03-12 22:43:05 +01:00
wait for fetchServerStatus
before calling fetchServerStats
This commit is contained in:
parent
ce4d3a3dbe
commit
8f7752a0b8
@ -80,14 +80,14 @@ export default {
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.fetchServerStatus();
|
||||
|
||||
if (!this.item.subtitle && this.status !== "dead") {
|
||||
if (!this.item.items) this.item.items = ["name", "version"];
|
||||
if (!this.item.separator) this.item.separator = " ";
|
||||
if (!this.item.logo) this.item.logo = `${this.item.url}/static/icons/favicon-192x192.png`;
|
||||
this.fetchServerStats();
|
||||
}
|
||||
this.fetchServerStatus().then(() => {
|
||||
if (!this.item.subtitle && this.status !== "dead") {
|
||||
if (!this.item.items) this.item.items = ["name", "version"];
|
||||
if (!this.item.separator) this.item.separator = " ";
|
||||
if (!this.item.logo) this.item.logo = `${this.item.url}/static/icons/favicon-192x192.png`;
|
||||
this.fetchServerStats();
|
||||
}
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
fetchServerStatus: async function () {
|
||||
|
Loading…
Reference in New Issue
Block a user