Chromium Code Reviews| Index: appengine/swarming/ui/res/imp/botpage/bot-page-data.html |
| diff --git a/appengine/swarming/ui/res/imp/botpage/bot-page-data.html b/appengine/swarming/ui/res/imp/botpage/bot-page-data.html |
| index 52e00f85a4ef203df8a243bfdd4f620ea63d78e7..685c5d9897314e87ec1ed646dbed86c1b29a765c 100644 |
| --- a/appengine/swarming/ui/res/imp/botpage/bot-page-data.html |
| +++ b/appengine/swarming/ui/res/imp/botpage/bot-page-data.html |
| @@ -97,6 +97,11 @@ |
| computed: "_parseBot(_bot)", |
| notify: true, |
| }, |
| + bot_exists: { |
| + type: Boolean, |
| + value: true, |
| + notify: true, |
| + }, |
| // private |
| _busy1: { |
| @@ -129,8 +134,13 @@ |
| lastRequest = this.async(function(){ |
| lastRequest = undefined; |
| var baseUrl = "/api/swarming/v1/bot/"+this.bot_id; |
| - this._getJsonAsync("_bot", baseUrl + "/get", |
| + var p = this._getJsonAsync("_bot", baseUrl + "/get", |
| "_busy1", this.auth_headers); |
| + p.then(function(){ |
| + this.set("bot_exists", true); |
| + }.bind(this)).catch(function(){ |
| + this.set("bot_exists", false); |
|
nodir
2016/11/02 18:46:29
what happens if swarming returns a transient error
kjlubick
2016/11/03 15:48:35
Done.
|
| + }.bind(this)); |
| this.fire("reload", {id: this.bot_id}); |
| }, BOT_ID_DEBOUNCE_MS); |