1 <div class="panel panel-default">
2 <div class="panel-heading clearfix">
3 <h2 class="panel-title pull-left">Global Configuration</h2>
4 <div class="pull-right">
5 <span class="fa fa-fw fa-exchange fa-size-x2" [style.color]="((severStatus$ | async)?.WS_connected)?'green':'red'"></span>
8 <div class="panel-body">
10 <div class="col-xs-12">
11 <table class="table table-condensed">
13 <tr [ngClass]="{'info': (localSTStatus$ | async)?.connected, 'danger': !(localSTStatus$ | async)?.connected}">
14 <th><label>Local Sync-tool URL</label></th>
15 <td> <input type="text" [(ngModel)]="syncToolUrl"></td>
17 <button class="btn btn-link" (click)="syncToolRestartConn()"><span class="fa fa-refresh fa-size-x2"></span></button>
21 <th><label>Local Sync-tool connection retry</label></th>
22 <td> <input type="text" [(ngModel)]="syncToolRetry" (ngModelChange)="showApplyBtn['retry'] = true"></td>
24 <button *ngIf="showApplyBtn['retry']" class="btn btn-primary btn-xs" (click)="submitGlobConf('retry')">APPLY</button>
28 <th><label>Local Projects root directory</label></th>
29 <td> <input type="text" [(ngModel)]="projectsRootDir" (ngModelChange)="showApplyBtn['rootDir'] = true"></td>
31 <button *ngIf="showApplyBtn['rootDir']" class="btn btn-primary btn-xs" (click)="submitGlobConf('rootDir')">APPLY</button>
41 <div class="panel panel-default">
42 <div class="panel-heading">
43 <h2 class="panel-title">Projects Configuration</h2>
45 <div class="panel-body">
46 <form [formGroup]="addProjectForm" (ngSubmit)="onSubmit()">
48 <div class="col-xs-2">
49 <button class="btn btn-primary" type="submit" [disabled]="!addProjectForm.valid"><i class="fa fa-plus"></i> New Folder</button>
52 <div class="col-xs-6">
53 <label>Folder Path </label>
54 <input type="text" style="width:70%;" formControlName="path" placeholder="myProject">
56 <div class="col-xs-4">
58 <input type="text" formControlName="label" (keyup)="onKeyLabel($event)">
63 <div class="row col-xs-12">
64 <projects-list-accordion [projects]="(config$ | async).projects"></projects-list-accordion>
70 <!-- only for debug -->
71 <div *ngIf="false" class="row">
72 {{config$ | async | json}}