Added support for custom webhook URLs for notifications

This commit is contained in:
Tzahi12345
2023-04-11 23:45:30 -04:00
parent 7593a23c2e
commit fb27264d33
4 changed files with 43 additions and 11 deletions

View File

@@ -393,6 +393,13 @@
</mat-select>
</mat-form-field>
</div>
<div class="col-12 mb-2 mt-2">
<mat-form-field class="text-field" color="accent">
<mat-label i18n="webhook URL">Webhook URL</mat-label>
<input placeholder="https://example.com/endpoint/12345" [(ngModel)]="new_config['API']['webhook_URL']" matInput>
<mat-hint>Place endpoint URL here to integrate with services like Zapier and Automatisch.</mat-hint>
</mat-form-field>
</div>
<div class="col-12 mt-3">
<mat-checkbox color="accent" [disabled]="!new_config['Extra']['enable_notifications']" [(ngModel)]="new_config['API']['use_ntfy_API']"><ng-container i18n="Use ntfy API setting">Use ntfy API</ng-container></mat-checkbox>
</div>