mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02: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">
|
||||
<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…
Add table
Add a link
Reference in a new issue