- {{ $t('creation') }} {{ $t('(') }}{{ amount / 20 }} {{ $t('h') }}{{ $t(')') }}
+ {{ $t('creation') }} {{ $t('(') }}{{ hours }} {{ $t('h') }}{{ $t(')') }}
@@ -125,8 +125,9 @@ import ContributionMessagesList from '@/components/ContributionMessages/Contribu
import { listContributionMessages } from '@/graphql/queries'
import { useAppToast } from '@/composables/useToast'
import { useI18n } from 'vue-i18n'
-import { useLazyQuery, useQuery } from '@vue/apollo-composable'
+import { useLazyQuery } from '@vue/apollo-composable'
import AppAvatar from '@/components/AppAvatar.vue'
+import { GDD_PER_HOUR } from '../../constants'
const props = defineProps({
id: {
@@ -201,10 +202,9 @@ const props = defineProps({
},
})
-const { toastError, toastSuccess } = useAppToast()
+const { toastError } = useAppToast()
const { t } = useI18n()
-const inProcess = ref(true)
const messagesGet = ref([])
const visible = ref(false)
@@ -224,8 +224,6 @@ const icon = computed(() => {
return 'bell-fill'
})
-const date = computed(() => props.createdAt)
-
const collapseId = computed(() => 'collapse' + String(props.id))
const username = computed(() => ({
@@ -233,6 +231,8 @@ const username = computed(() => ({
initials: `${props.firstName[0]}${props.lastName[0]}`,
}))
+const hours = computed(() => parseFloat((props.amount / GDD_PER_HOUR).toFixed(2)))
+
watch(
() => visible.value,
() => {
diff --git a/frontend/src/components/Contributions/OpenCreationsAmount.vue b/frontend/src/components/Contributions/OpenCreationsAmount.vue
index 3a0b6ea5a..2b15bdc52 100644
--- a/frontend/src/components/Contributions/OpenCreationsAmount.vue
+++ b/frontend/src/components/Contributions/OpenCreationsAmount.vue
@@ -32,29 +32,29 @@