Always open global config when an error exists
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 24 Aug 2017 22:45:15 +0000 (00:45 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 24 Aug 2017 22:45:15 +0000 (00:45 +0200)
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
webapp/src/app/config/config.component.html
webapp/src/app/devel/devel.component.html

index 369b5c1..c36ba02 100644 (file)
@@ -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">
index 0b90f8e..8e71c58 100644 (file)
@@ -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>