mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-19 07:15:42 +00:00
30 lines
1.3 KiB
HTML
30 lines
1.3 KiB
HTML
<my-bridge-config [bridgeComponent]="this">
|
|
<ng-template #bridgeParamsTemplate>
|
|
<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>
|
|
</div>
|
|
</details>
|
|
</ng-template>
|
|
</my-bridge-config>
|