2021-08-16 18:00:59 -04:00
|
|
|
<div class="modal-header">
|
|
|
|
<h4 class="modal-title" id="modal-basic-title">{{'self-hosted webhook bridge' | translate}} ({{ isAdding ? "Add a new" : "Edit" }})</h4>
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" (click)="modal.close()"></button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>{{'Self-hosted webhook bridges must have' | translate}} <code>{{'provisioning' | translate}}</code> {{'enabled in the configuration.' | translate}}</p>
|
2018-10-20 16:07:30 -04:00
|
|
|
|
2021-08-16 18:00:59 -04:00
|
|
|
<label class="label-block">
|
|
|
|
{{'Provisioning URL' | translate}}
|
|
|
|
<span class="text-muted ">{{'The public URL for the bridge.' | translate}}</span>
|
|
|
|
<input type="text" class="form-control"
|
|
|
|
placeholder="https://webhooks.example.org:9000/"
|
|
|
|
[(ngModel)]="provisionUrl" [disabled]="isSaving"/>
|
|
|
|
</label>
|
2018-10-20 16:07:30 -04:00
|
|
|
|
2021-08-16 18:00:59 -04:00
|
|
|
<label class="label-block">
|
|
|
|
{{'Shared Secret' | translate}}
|
|
|
|
<span class="text-muted ">{{'The provisioning secret defined in the configuration.' | translate}}</span>
|
|
|
|
<input type="text" class="form-control"
|
|
|
|
placeholder="some_secret_value"
|
|
|
|
[(ngModel)]="sharedSecret" [disabled]="isSaving"/>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" (click)="add()" title="save" class="btn btn-primary btn-sm">
|
|
|
|
<i class="far fa-save"></i> {{'Save' | translate}}
|
|
|
|
</button>
|
|
|
|
<button type="button" (click)="modal.close()" title="close" class="btn btn-secondary btn-sm">
|
|
|
|
<i class="far fa-times-circle"></i> {{'Cancel' | translate}}
|
|
|
|
</button>
|
2020-10-23 07:30:20 -04:00
|
|
|
</div>
|