pull/1941/head
Jamie 7 years ago
parent 59173b8bc4
commit e840f828e7

@ -44,6 +44,7 @@ export enum NotificationType {
RequestDeclined, RequestDeclined,
ItemAddedToFaultQueue, ItemAddedToFaultQueue,
WelcomeEmail, WelcomeEmail,
IssueResolved,
} }
export interface IDiscordNotifcationSettings extends INotificationSettings { export interface IDiscordNotifcationSettings extends INotificationSettings {

@ -1,31 +1,54 @@
 <settings-menu>
<settings-menu></settings-menu> </settings-menu>
<div *ngIf="form"> <div *ngIf="form">
<fieldset> <fieldset>
<legend>Mobile Notifications</legend> <legend>Mobile Notifications</legend>
<div class="col-md-6"> <div class="col-md-6">
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)"> <form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)">
<div class="row">
<div *ngFor="let user of userList"> <div *ngIf="userList" class="col-md-8">
<span>{{user.username}} - {{user.devices}}</span> <table class="table table-striped table-hover table-responsive table-condensed">
<thead>
<tr>
<th>
<a>Username/Alias</a>
</th>
<th>
<a>Mobile Devices Registered</a>
</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let user of userList">
<td>
{{user.username}}
</td>
<td>
{{user.devices}}
</td>
</tbody>
</table>
</div>
</div> </div>
<div class="row">
<div class="form-group">
<div class="form-group"> <div>
<div> <button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline">
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline"> Test
Test <div id="spinner"></div>
<div id="spinner"></div> </button>
</button> </div>
</div> </div>
</div>
<div class="form-group"> <div class="form-group">
<div> <div>
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button> <button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button>
</div>
</div> </div>
</div> </div>
</form> </form>

Loading…
Cancel
Save