feat: make salutation i18n static #2546
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#2546
Loading…
Reference in New Issue
No description provided.
Delete Branch "dpschen/frontend:feature/feat-static-i18n-salutation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -79,3 +79,3 @@
import {useTaskStore} from '@/stores/tasks'
const welcome = useDateTimeSalutation()
const username = computed(() => userInfo.name !== '' ? userInfo.name : userInfo.username)
I think there's a function for this already in the user model? (Or related to it)
Yes! I got it now via a new getter that uses the helper you mentioned inside of the composable.
Can you fix the lint issues?
Hi dpschen!
Thank you for creating a PR!
I've deployed the changes of this PR on a preview environment under this URL: https://2546-feature-feat-static-i18n-salutat--vikunja-frontend-preview.netlify.app
You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.
Have a nice day!
8094689b91
to5afafb7c82
Fixed