Fix filter bug when "all" course profile is selected
This commit is contained in:
parent
a8ac9c2a0a
commit
b780061641
|
|
@ -18,7 +18,11 @@ defineEmits(["select"]);
|
|||
<button
|
||||
v-for="profile in profiles"
|
||||
:key="profile"
|
||||
:class="selected == profile || !selected ? 'tag-active' : 'tag-inactive'"
|
||||
:class="
|
||||
selected == profile || !selected || selected === allProfile
|
||||
? 'tag-active'
|
||||
: 'tag-inactive'
|
||||
"
|
||||
@click="$emit('select', profile)"
|
||||
>
|
||||
{{ $t(`profile.${profile}`) }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue