Skip to content
Snippets Groups Projects
Commit 5802e1e9 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

switch upp url base retrived from process.env to config

parent 5d059988
No related branches found
No related tags found
1 merge request!60REDMINE_ISSUE-11732
This commit is part of merge request !60. Comments created here will be created in the context of that merge request.
......@@ -295,7 +295,9 @@ export default {
"USER_LEVEL_PROJECTS",
"user_permissions",
]),
DJANGO_BASE_URL: () => process.env.VUE_APP_DJANGO_BASE,
DJANGO_BASE_URL: function () {
return this.$store.state.configuration.VUE_APP_DJANGO_BASE;
},
userFullname: function () {
if (this.user.first_name || this.user.last_name)
return this.user.first_name + " " + this.user.last_name;
......
......@@ -73,7 +73,9 @@ export default {
computed: {
...mapGetters(["project_types"]),
DJANGO_BASE_URL: () => process.env.VUE_APP_DJANGO_BASE,
DJANGO_BASE_URL: function () {
return this.$store.state.configuration.VUE_APP_DJANGO_BASE;
},
},
methods: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment