aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-08-25 00:45:15 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-08-25 00:45:15 +0200
commit0367a6f9f2f868d785f197a052840ec621a681a6 (patch)
tree9d3071f226bd0b234540bd20bdab0c77d3bca164
parent0a9826806b26fd179b739bd2c1ca9fcb114e321f (diff)
Always open global config when an error exists
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--webapp/src/app/config/config.component.html2
-rw-r--r--webapp/src/app/devel/devel.component.html8
2 files changed, 5 insertions, 5 deletions
diff --git a/webapp/src/app/config/config.component.html b/webapp/src/app/config/config.component.html
index 369b5c1..c36ba02 100644
--- a/webapp/src/app/config/config.component.html
+++ b/webapp/src/app/config/config.component.html
@@ -11,7 +11,7 @@
</div>
</h2>
</div>
- <div class="panel-body" [collapse]="gConfigIsCollapsed">
+ <div class="panel-body" [collapse]="gConfigIsCollapsed && (agentStatus$ | async)?.connected">
<div class="row">
<div class="col-xs-12">
<table class="table table-condensed">
diff --git a/webapp/src/app/devel/devel.component.html b/webapp/src/app/devel/devel.component.html
index 0b90f8e..8e71c58 100644
--- a/webapp/src/app/devel/devel.component.html
+++ b/webapp/src/app/devel/devel.component.html
@@ -7,11 +7,11 @@
<td>
<div class="btn-group" dropdown *ngIf="curPrj">
<button dropdownToggle type="button" class="btn btn-primary dropdown-toggle" style="width: 20em;">
- {{curPrj.label}} <span class="caret" style="float: right; margin-top: 8px;"></span>
- </button>
+ {{curPrj.label}}
+ <span class="caret" style="float: right; margin-top: 8px;"></span>
+ </button>
<ul *dropdownMenu class="dropdown-menu" role="menu">
- <li role="menuitem"><a class="dropdown-item" *ngFor="let prj of (config$ | async)?.projects"
- [class.disabled]="!prj.isUsable"
+ <li role="menuitem"><a class="dropdown-item" *ngFor="let prj of (config$ | async)?.projects" [class.disabled]="!prj.isUsable"
(click)="curPrj=prj">{{prj.label}}</a>
</li>