Skip to content

Commit 78fed47

Browse files
committed
...
1 parent f44fc9e commit 78fed47

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

  • src/Resources/app/administration/src/overrides/sw-version

src/Resources/app/administration/src/overrides/sw-version/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ import template from './template.twig';
22

33
const { Component } = Shopware;
44

5-
65
Component.override('sw-version', {
76
template,
87
inject: ['FroshToolsService'],
98

109
async created() {
11-
this.health = await this.FroshToolsService.healthStatus();
12-
this.checkHealth();
10+
await this.checkHealth();
1311
},
1412

1513
data() {
@@ -59,10 +57,11 @@ Component.override('sw-version', {
5957
},
6058

6159
methods: {
62-
checkHealth() {
63-
const me = this;
60+
async checkHealth() {
61+
this.health = await this.FroshToolsService.healthStatus();
62+
6463
setInterval(async() => {
65-
me.health = await this.FroshToolsService.healthStatus();
64+
this.health = await this.FroshToolsService.healthStatus();
6665
}, 10000);
6766
}
6867
}

0 commit comments

Comments
 (0)