mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Change how always-on bridges are represented UI-wise
This commit is contained in:
parent
b0ab80e33e
commit
a007e553a5
@ -6,11 +6,8 @@
|
||||
<div class="switch" *ngIf="integration.type !== 'bridge'">
|
||||
<ui-switch [checked]="integration.isEnabled" size="small" [disabled]="integration.isBroken" (change)="update()"></ui-switch>
|
||||
</div>
|
||||
<div class="switch" *ngIf="integration.type == 'bridge' && integration.isEnabled">
|
||||
<ui-switch [checked]="true" size="small" [disabled]="true" ngbTooltip="This integration is always enabled. Click the cog to configure it."></ui-switch>
|
||||
</div>
|
||||
<div class="switch" *ngIf="integration.type == 'bridge' && !integration.isEnabled">
|
||||
<ui-switch [checked]="false" size="small" [disabled]="true" ngbTooltip="{{ integration.bridgeError }}"></ui-switch>
|
||||
<i class="fa fa-warning text-warning" ngbTooltip="{{ integration.bridgeError }}"></i>
|
||||
</div>
|
||||
<div class="toolbar">
|
||||
<i class="fa fa-question-circle text-info" ngbTooltip="{{integration.about}}" *ngIf="integration.about"></i>
|
||||
|
@ -68,7 +68,7 @@ export class RiotComponent {
|
||||
integration.isBroken = false;
|
||||
}, error => {
|
||||
console.error(error);
|
||||
integration.bridgeError = error.message;
|
||||
integration.bridgeError = error.message || error;
|
||||
integration.isEnabled = false;
|
||||
integration.isBroken = false;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user