mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 09:12:57 -07:00
Hide the subject when it's not being used
This commit is contained in:
parent
237acc9311
commit
1f02c87c8c
8 changed files with 8 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue