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">
<notification-templates [templates]="templates"></notification-templates>
<notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div>
</fieldset>
</div>

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

@ -15,7 +15,7 @@
</div>
</div>
<div class="form-group">
<div class="form-group" *ngIf="showSubject">
<label class="control-label">Subject</label>
<div>
<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 {
@Input() public templates: INotificationTemplates[];
@Input() public showSubject = true; // True by default
public NotificationType = NotificationType;
}

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

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

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

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