Hide the subject when it's not being used

pull/1653/merge
Jamie 7 years ago
parent 237acc9311
commit 1f02c87c8c

@ -50,7 +50,7 @@
<div class="col-md-6"> <div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates> <notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div> </div>
</fieldset> </fieldset>
</div> </div>

@ -66,7 +66,7 @@
<div class="col-md-6"> <div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates> <notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div> </div>
</fieldset> </fieldset>
</div> </div>

@ -15,7 +15,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group" *ngIf="showSubject">
<label class="control-label">Subject</label> <label class="control-label">Subject</label>
<div> <div>
<input type="text" class="form-control form-control-custom" [(ngModel)]="template.subject" value="{{template.subject}}"> <input type="text" class="form-control form-control-custom" [(ngModel)]="template.subject" value="{{template.subject}}">

@ -8,5 +8,6 @@ import { INotificationTemplates, NotificationType } from "../../interfaces";
}) })
export class NotificationTemplate { export class NotificationTemplate {
@Input() public templates: INotificationTemplates[]; @Input() public templates: INotificationTemplates[];
@Input() public showSubject = true; // True by default
public NotificationType = NotificationType; public NotificationType = NotificationType;
} }

@ -51,7 +51,7 @@
<div class="col-md-6"> <div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates> <notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div> </div>
</fieldset> </fieldset>
</div> </div>

@ -51,7 +51,7 @@
<div class="col-md-6"> <div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates> <notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div> </div>
</fieldset> </fieldset>
</div> </div>

@ -76,7 +76,7 @@
<div class="col-md-6"> <div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates> <notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div> </div>
</fieldset> </fieldset>
</div> </div>

@ -60,7 +60,7 @@
<div class="col-md-6"> <div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates> <notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div> </div>
</fieldset> </fieldset>
</div> </div>
Loading…
Cancel
Save