diff --git a/app/pods/components/bridge-finder/component.js b/app/pods/components/bridge-finder/component.js index cd0310b..d3eb6fb 100644 --- a/app/pods/components/bridge-finder/component.js +++ b/app/pods/components/bridge-finder/component.js @@ -23,6 +23,7 @@ export default Em.Component.extend({ manualBridgeIp: null, manualBridgeIpNotFound: false, multipleBridgeIps: [], + error: false, actions: { retry(){ @@ -126,6 +127,9 @@ export default Em.Component.extend({ } this.set('bridgeAuthenticateReachedStatus', status); + }).fail(()=>{ + this.clearBridgePingIntervalHandle(); + this.set('error', true); }); this.incrementProperty('bridgeUserNamePingIntervalProgress', this.get('bridgeUsernamePingIntervalTime')/bridgeUsernamePingMaxTime*100); diff --git a/app/pods/components/bridge-finder/template.hbs b/app/pods/components/bridge-finder/template.hbs index e1e0ff1..b17b5b9 100644 --- a/app/pods/components/bridge-finder/template.hbs +++ b/app/pods/components/bridge-finder/template.hbs @@ -1,13 +1,20 @@
- {{paper-progress-linear warn=true value=bridgeUserNamePingIntervalProgress}}
- {{#if isAuthenticating}}
- Your bridge IP is {{bridgeIp}}
- Press the button on your bridge to authenticate this application.
Huegasm encountered a critical error while trying to connect to your bridge.
+ This likely happened because you're using an outdated browser and/or because your browser does not support CORS. Feel free to contact me through the link at the bottom of the page if you feel like this is not the case.
+ For the best browsing experience on this site ( and every other one known to man ) please switch to Google Chrome or Firefox
You failed to press the button. RETRY
+
+ {{paper-progress-linear warn=true value=bridgeUserNamePingIntervalProgress}}
+
+ {{#if isAuthenticating}}
+ Your bridge IP is {{bridgeIp}}
+ Press the button on your bridge to authenticate this application.
You failed to press the button. RETRY
+ {{/if}} {{/if}} {{else}} {{#unless bridgeFindStatus}}