Show option group only if there are custom profiles

This commit is contained in:
Jude Cooray 2023-10-09 21:06:42 +11:00
parent 5d1a35a285
commit 57f20eca4f

View file

@ -12,7 +12,7 @@ ul.nav-tabs(ngbNav, #nav='ngbNav')
[(ngModel)]='config.store.terminal.profile',
(ngModelChange)='config.save()',
)
optgroup([label]='"Custom Profiles"|translate')
optgroup([label]='"Custom Profiles"|translate', *ngIf='customProfiles?.length > 0')
option(
*ngFor='let profile of customProfiles',
[ngValue]='profile.id'