matrix-dimension/web/app/integration/integration.component.html

22 lines
1.1 KiB
HTML
Raw Normal View History

2017-05-28 16:37:09 -04:00
<div class="integration">
<img [src]="integration.avatar" class="avatar">
<div class="title">
<b>{{ integration.name }}</b>
<div style="display: flex;">
<div class="switch" *ngIf="integration.type !== 'bridge' && integration.type !== 'widget'">
2017-12-09 18:34:59 -05:00
<ui-switch [checked]="integration.isEnabled" size="small" [disabled]="integration.isBroken"
(change)="update()"></ui-switch>
</div>
<div class="switch" *ngIf="integration.type == 'bridge' && !integration.isEnabled">
<i class="fa fa-warning text-warning" ngbTooltip="{{ integration.bridgeError }}"></i>
</div>
<div class="toolbar">
2017-12-09 18:34:59 -05:00
<i class="fa fa-question-circle text-info" ngbTooltip="{{integration.about}}"
*ngIf="integration.about"></i>
<i class="fa fa-cog text-info config-icon" (click)="configureIntegration()"
*ngIf="integration.isEnabled && integration.hasConfig"></i>
</div>
</div>
</div>
<div style="clear: both;"></div>
</div>