fetch config
This commit is contained in:
@@ -73,10 +73,6 @@ import { mapGetters, mapActions } from "vuex";
|
||||
import InfobaseURLEditor from "@/components/InfobaseURLEditor.vue";
|
||||
import ItemLoading from "@/components/ItemLoading.vue";
|
||||
|
||||
import config from "@/config.js";
|
||||
|
||||
const url_base = config.publication.url_base;
|
||||
|
||||
export default {
|
||||
name: "InfobaseListItem",
|
||||
components: {
|
||||
@@ -97,7 +93,7 @@ export default {
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(["getInfobaseByName"]),
|
||||
...mapGetters(["getInfobaseByName, Config"]),
|
||||
name() {
|
||||
return this.infobase.name;
|
||||
},
|
||||
@@ -108,7 +104,7 @@ export default {
|
||||
return this.infobase.url;
|
||||
},
|
||||
url_full() {
|
||||
return `${url_base}${this.infobase.url}`;
|
||||
return `${this.$store.getters.Config.url_prefix}${this.infobase.url}`;
|
||||
},
|
||||
is_locked() {
|
||||
return this.$store.getters.isInfobaseLocked(this.infobase.name);
|
||||
|
||||
Reference in New Issue
Block a user