File tree Expand file tree Collapse file tree
src/Resources/app/administration/src/overrides/sw-version Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,14 +2,12 @@ import template from './template.twig';
22
33const { Component } = Shopware ;
44
5-
65Component . 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 }
You can’t perform that action at this time.
0 commit comments