Client - fix focus when no stats to display
This commit is contained in:
@ -5,9 +5,10 @@
|
||||
<template #title>{{ $t('statistics.STATISTICS') }}</template>
|
||||
<template #content>
|
||||
<Statistics
|
||||
:class="{ 'stats-disabled': authUser.nb_workouts === 0 }"
|
||||
:class="{ 'stats-disabled': isDisabled }"
|
||||
:user="authUser"
|
||||
:sports="sports"
|
||||
:isDisabled="isDisabled"
|
||||
/>
|
||||
</template>
|
||||
</Card>
|
||||
@ -36,6 +37,9 @@
|
||||
authUser.value.sports_list.includes(sport.id)
|
||||
)
|
||||
)
|
||||
const isDisabled: ComputedRef<boolean> = computed(
|
||||
() => authUser.value.nb_workouts === 0
|
||||
)
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
Reference in New Issue
Block a user