mirror of https://github.com/apache/cloudstack.git
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>
This commit is contained in:
parent
bed8fab4b4
commit
173b8e30ca
|
|
@ -94,7 +94,7 @@ export default {
|
|||
this.$store.dispatch('ProjectView', project.id)
|
||||
this.$store.dispatch('SetProject', project)
|
||||
this.$store.dispatch('ToggleTheme', project.id === undefined ? 'light' : 'dark')
|
||||
this.$message.success(`Switched to "${project.displaytext}"`)
|
||||
this.$message.success(`${this.$t('message.switch.to')} "${project.displaytext || project.name}"`)
|
||||
if (this.$route.name !== 'dashboard') {
|
||||
this.$router.push({ name: 'dashboard' })
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue