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

Merge branch 'redmine-issues/12786' into redmine-issues/12378

parents 57d1f126 c5bf5c84
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"VUE_APP_LOGO_PATH":"/geocontrib/img/logo-neogeo-circle.png", "VUE_APP_LOGO_PATH":"/geocontrib/img/logo-neogeo-circle.png",
"VUE_APP_DJANGO_BASE":"http://localhost:8010", "VUE_APP_DJANGO_BASE":"http://localhost:8010",
"VUE_APP_DJANGO_API_BASE":"http://localhost:8010/api/", "VUE_APP_DJANGO_API_BASE":"http://localhost:8010/api/",
"VUE_APP_CATALOG_NAME": "Datasud",
"VUE_APP_RELOAD_INTERVAL": 15000, "VUE_APP_RELOAD_INTERVAL": 15000,
"VUE_APP_DISABLE_LOGIN_BUTTON":false, "VUE_APP_DISABLE_LOGIN_BUTTON":false,
"VUE_APP_LOGIN_URL":"", "VUE_APP_LOGIN_URL":"",
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
}, },
}" }"
class="ui icon button import-catalog" class="ui icon button import-catalog"
>Importer les signalements à partir de Datasud >Importer les signalements à partir de {{ CATALOG_NAME|| 'IDGO'}}
</router-link> </router-link>
<div v-if="$route.params.geojson" class="ui button import-catalog basic active teal"> <div v-if="$route.params.geojson" class="ui button import-catalog basic active teal">
Ressource {{$route.params.geojson.name}} Ressource {{$route.params.geojson.name}}
...@@ -285,10 +285,16 @@ export default { ...@@ -285,10 +285,16 @@ export default {
'features', 'features',
'features_count' 'features_count'
]), ]),
...mapState([
'configuration',
]),
...mapState('feature_type', [ ...mapState('feature_type', [
'feature_types', 'feature_types',
'importFeatureTypeData' 'importFeatureTypeData'
]), ]),
CATALOG_NAME() {
return this.configuration.VUE_APP_CATALOG_NAME;
},
structure: function () { structure: function () {
if (Object.keys(this.feature_types).length) { if (Object.keys(this.feature_types).length) {
let st = this.feature_types.find( let st = this.feature_types.find(
......
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
}" }"
class="ui compact basic button button-hover-green button-align-left" class="ui compact basic button button-hover-green button-align-left"
> >
<i class="ui plus icon"></i>Créer un nouveau type de signalement à partir du catalogue Datasud <i class="ui plus icon"></i>Créer un nouveau type de signalement à partir du catalogue {{ CATALOG_NAME|| 'IDGO'}}
</router-link> </router-link>
</div> </div>
...@@ -673,6 +673,9 @@ export default { ...@@ -673,6 +673,9 @@ export default {
'project', 'project',
'permissions' 'permissions'
]), ]),
...mapState([
'configuration',
]),
...mapState('feature_type', [ ...mapState('feature_type', [
'feature_types', 'feature_types',
'importFeatureTypeData' 'importFeatureTypeData'
...@@ -689,10 +692,13 @@ export default { ...@@ -689,10 +692,13 @@ export default {
'map' 'map'
]), ]),
DJANGO_BASE_URL() { DJANGO_BASE_URL() {
return this.$store.state.configuration.VUE_APP_DJANGO_BASE; return this.configuration.VUE_APP_DJANGO_BASE;
}, },
API_BASE_URL() { API_BASE_URL() {
return this.$store.state.configuration.VUE_APP_DJANGO_API_BASE; return this.configuration.VUE_APP_DJANGO_API_BASE;
},
CATALOG_NAME() {
return this.configuration.VUE_APP_CATALOG_NAME;
}, },
fileSize() { fileSize() {
return fileConvertSizeToMo(this.fileToImport.size); return fileConvertSizeToMo(this.fileToImport.size);
......
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