Client - display only active sports (+ workout sport) on workout edition
fix #129
This commit is contained in:
@ -189,7 +189,7 @@
|
||||
() => store.getters[SPORTS_STORE.GETTERS.SPORTS]
|
||||
)
|
||||
const translatedSports: ComputedRef<ITranslatedSport[]> = computed(() =>
|
||||
translateSports(sports.value, t, true, user.value.sports_list)
|
||||
translateSports(sports.value, t, 'is_active', user.value.sports_list)
|
||||
)
|
||||
const loading = computed(
|
||||
() => store.getters[AUTH_USER_STORE.GETTERS.USER_LOADING]
|
||||
|
@ -267,8 +267,8 @@
|
||||
translateSports(
|
||||
props.sports,
|
||||
t,
|
||||
true,
|
||||
workout.value.id ? [workout.value.sport_id] : null
|
||||
'is_active_for_user',
|
||||
workout.value.id ? [workout.value.sport_id] : []
|
||||
)
|
||||
)
|
||||
const appConfig: ComputedRef<TAppConfig> = computed(
|
||||
|
Reference in New Issue
Block a user