mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
3.2 KiB
72 lines
3.2 KiB
|
|
<settings-menu></settings-menu>
|
|
<div *ngIf="form">
|
|
<fieldset>
|
|
<legend>Mattermost Notifications</legend>
|
|
<div class="col-md-6">
|
|
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)">
|
|
|
|
<div class="form-group">
|
|
<div class="checkbox">
|
|
<input type="checkbox" id="enable" formControlName="enabled">
|
|
<label for="enable">Enabled</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<small class="control-label"> Mattermost > Integrations > Incoming Webhook > Add Incoming Webhook. You will then have a Webhook</small>
|
|
<label for="webhookUrl" class="control-label">Incoming Webhook Url</label>
|
|
|
|
<input type="text" class="form-control form-control-custom " id="webhookUrl" name="webhookUrl" formControlName="webhookUrl" [ngClass]="{'form-error': form.get('webhookUrl').hasError('required')}">
|
|
<small *ngIf="form.get('webhookUrl').hasError('required')" class="error-text">The Webhook Url is required</small>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<label for="channel" class="control-label">Channel Override</label>
|
|
<div>
|
|
<input type="text" class="form-control form-control-custom " id="channel" name="channel" formControlName="channel" pTooltip="Optional, you can override the default channel">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="username" class="control-label">Username Override</label>
|
|
<div>
|
|
<input type="text" class="form-control form-control-custom " id="username" name="username" formControlName="username" pTooltip="Optional, this will override the username you used for the Webhook">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="iconUrl" class="control-label">Icon Override</label>
|
|
<div>
|
|
<input type="text" class="form-control form-control-custom " id="iconUrl" name="iconUrl" formControlName="iconUrl" pTooltip="Optional, this will override the icon you use for the Webhook">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<div>
|
|
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline">
|
|
Test
|
|
<div id="spinner"></div>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<div>
|
|
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-6">
|
|
<notification-templates [templates]="templates"></notification-templates>
|
|
</div>
|
|
</fieldset>
|
|
</div> |