From 80fb07d960444f0436fc8a4d56177b3c2329b69f Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Fri, 12 Feb 2021 09:57:43 -0500 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20network=20error?= =?UTF-8?q?=20and=20disconnect=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/scopes/scope/projects/error.hbs | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/ui/desktop/app/templates/scopes/scope/projects/error.hbs b/ui/desktop/app/templates/scopes/scope/projects/error.hbs index 4b50d06f4..57529c9f8 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/error.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/error.hbs @@ -1,7 +1,23 @@ {{page-title (t "errors.generic.title") }} - - {{#each @model.errors as |error|}} - - {{/each}} - +{{! Most error types will land here }} +{{#if @model.errors}} + + {{#each @model.errors as |error|}} + + {{/each}} + +{{/if}} + +{{! But a disconnected state doesn't get normalized errors }} +{{#unless @model.errors}} + + + + + + + {{t "actions.disconnect"}} + + +{{/unless}}