Client - fix focus when no stats to display

This commit is contained in:
Sam
2023-07-13 20:09:42 +02:00
parent d0836cd4ed
commit 739fe8efb0
4 changed files with 33 additions and 6 deletions

View File

@ -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>