2018-10-21 16:20:37 -04:00
|
|
|
<my-bridge-config [bridgeComponent]="this">
|
|
|
|
<ng-template #bridgeParamsTemplate>
|
|
|
|
<my-ibox [isCollapsible]="false">
|
|
|
|
<h5 class="my-ibox-title">
|
|
|
|
Bridge to Gitter
|
|
|
|
</h5>
|
|
|
|
<div class="my-ibox-content">
|
|
|
|
<div *ngIf="isBridged">
|
|
|
|
This room is bridged to "{{ bridge.config.link.gitterRoomName }}" on Gitter.
|
|
|
|
<button type="button" class="btn btn-sm btn-danger" [disabled]="isBusy" (click)="unbridgeRoom()">
|
|
|
|
Unbridge
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="!isBridged">
|
|
|
|
<label class="label-block">
|
|
|
|
Gitter Room
|
|
|
|
<input title="room name" type="text" class="form-control form-control-sm col-md-3"
|
2019-07-11 00:17:16 -04:00
|
|
|
[(ngModel)]="gitterRoomName" [disabled]="isBusy" placeholder="my-org/room"/>
|
2018-10-21 16:20:37 -04:00
|
|
|
</label>
|
|
|
|
<button type="button" class="btn btn-sm btn-primary" [disabled]="isBusy" (click)="bridgeRoom()">
|
|
|
|
Bridge
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</my-ibox>
|
|
|
|
</ng-template>
|
|
|
|
</my-bridge-config>
|