Skip to content

Commit 173b8e3

Browse files
Hoang Nguyenyadvr
authored andcommitted
project: The message empty or undefined when switch project (#735)
* fix message empty or undefined when switch project * transalte message text Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent bed8fab commit 173b8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/header/ProjectMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default {
9494
this.$store.dispatch('ProjectView', project.id)
9595
this.$store.dispatch('SetProject', project)
9696
this.$store.dispatch('ToggleTheme', project.id === undefined ? 'light' : 'dark')
97-
this.$message.success(`Switched to "${project.displaytext}"`)
97+
this.$message.success(`${this.$t('message.switch.to')} "${project.displaytext || project.name}"`)
9898
if (this.$route.name !== 'dashboard') {
9999
this.$router.push({ name: 'dashboard' })
100100
}

0 commit comments

Comments
 (0)