Client - display notes

This commit is contained in:
Sam
2021-09-26 11:40:07 +02:00
parent 0c78b7a618
commit 63f8ef59ae
4 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,44 @@
<template>
<div id="workout-note">
<Card :without-title="false">
<template #title>{{ t('workouts.NOTES') }}</template>
<template #content>
{{ notes && notes !== '' ? notes : t('workouts.NO_NOTES') }}</template
>
</Card>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import Card from '@/components/Common/Card.vue'
export default defineComponent({
name: 'WorkoutNotes',
components: {
Card,
},
props: {
notes: {
type: String,
required: false,
},
},
setup() {
const { t } = useI18n()
return { t }
},
})
</script>
<style lang="scss" scoped>
@import '~@/scss/base.scss';
#workout-note {
::v-deep(.card-content) {
font-style: italic;
}
}
</style>