Hide description in selector model if it's the same as the title

This commit is contained in:
Brandon Rothweiler
2022-05-24 22:58:02 -04:00
committed by GitHub
parent fbcb165708
commit 0a0ec35b84

View File

@@ -22,7 +22,9 @@
[color]='option.color' [color]='option.color'
) )
.title.mr-2 {{getOptionText(option)}} .title.mr-2 {{getOptionText(option)}}
.description.no-wrap.text-muted {{option.description}} .description.no-wrap.text-muted(
*ngIf='option.description !== getOptionText(option)'
) {{option.description}}
.ml-auto .ml-auto
.no-wrap.badge.badge-secondary.text-muted.ml-2(*ngIf='selectedIndex == i && canEditSelected()') .no-wrap.badge.badge-secondary.text-muted.ml-2(*ngIf='selectedIndex == i && canEditSelected()')
span Backspace span Backspace