2018-10-21 00:33:01 +00:00
|
|
|
<my-bridge-config [bridgeComponent]="this">
|
|
|
|
<ng-template #bridgeParamsTemplate>
|
2021-12-09 22:15:49 +00:00
|
|
|
<h3>{{'New webhook' | translate}}</h3>
|
|
|
|
<form (submit)="newHook()" novalidate name="addForm">
|
|
|
|
<my-field
|
|
|
|
label="{{'Webhook name' | translate}}"
|
|
|
|
[placeholder]="'My Webhook' | translate"
|
|
|
|
[(value)]="webhookName"
|
|
|
|
[disabled]="isBusy"
|
|
|
|
></my-field>
|
|
|
|
<button type="button" class="element-btn" [disabled]="isBusy" (click)="newHook()">
|
|
|
|
{{'Add webhook' | translate}}
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
<h3 style="margin-top: 36px">{{'Webhooks' | translate}}</h3>
|
|
|
|
<p *ngIf="newConfig.webhooks.length === 0">{{'No webhooks configured for this room.' | translate}}</p>
|
|
|
|
|
|
|
|
<details *ngFor="let hook of newConfig.webhooks trackById">
|
|
|
|
<summary>{{hook.label || ('No name' | translate)}}</summary>
|
|
|
|
URL: <a [href]="hook.url" target="_blank">{{ hook.url }}</a>
|
|
|
|
<div style="padding-bottom: 16px">
|
|
|
|
<button type="button" class="element-btn element-btn-danger" [disabled]="isBusy"
|
|
|
|
(click)="removeHook(hook)">
|
|
|
|
{{'Remove webhook' | translate}}
|
|
|
|
</button>
|
2018-10-21 00:33:01 +00:00
|
|
|
</div>
|
2021-12-09 22:15:49 +00:00
|
|
|
</details>
|
2018-10-21 00:33:01 +00:00
|
|
|
</ng-template>
|
2020-10-23 11:30:20 +00:00
|
|
|
</my-bridge-config>
|