diff --git a/public/config/config.json b/public/config/config.json index 59d53731dc6b8f8a63f1e9da0c8e6a2c255008e6..2e3782748bae7980efe3562cdf67f9e778001658 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -10,6 +10,7 @@ "VUE_APP_DJANGO_BASE":"http://localhost:8010", "VUE_APP_DJANGO_API_BASE":"http://localhost:8010/api/", "VUE_APP_CATALOG_NAME": "Datasud", + "VUE_APP_IDGO": true, "VUE_APP_RELOAD_INTERVAL": 15000, "VUE_APP_DISABLE_LOGIN_BUTTON":false, "VUE_APP_LOGIN_URL":"", diff --git a/src/views/feature_type/Feature_type_detail.vue b/src/views/feature_type/Feature_type_detail.vue index 370b131473ef3dcc03f39e7f7f2d53c19e9a150f..9fc8c96691bf201be27aad5276fbec0cc92be3df 100644 --- a/src/views/feature_type/Feature_type_detail.vue +++ b/src/views/feature_type/Feature_type_detail.vue @@ -88,6 +88,7 @@ <router-link v-if=" + IDGO && permissions && permissions.can_create_feature " @@ -101,7 +102,7 @@ class="ui icon button import-catalog" >Importer les signalements à partir de {{ CATALOG_NAME|| 'IDGO'}} </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 no-hover"> Ressource {{$route.params.geojson.name}} </div> <ul v-if="importError" class="errorlist"> @@ -295,6 +296,9 @@ export default { CATALOG_NAME() { return this.configuration.VUE_APP_CATALOG_NAME; }, + IDGO() { + return this.$store.state.configuration.VUE_APP_IDGO; + }, structure: function () { if (Object.keys(this.feature_types).length) { let st = this.feature_types.find( @@ -509,4 +513,8 @@ export default { .import-catalog { margin-bottom: 1em; } + +.no-hover { + cursor: default; +} </style> \ No newline at end of file diff --git a/src/views/project/Project_detail.vue b/src/views/project/Project_detail.vue index 3cff2db357727c3fb90f5c497aac470a64e1f41a..ef8822e0df634f9aef427a64b26446fb67b103e9 100644 --- a/src/views/project/Project_detail.vue +++ b/src/views/project/Project_detail.vue @@ -327,6 +327,7 @@ <div class="nouveau-type-signalement"> <router-link v-if=" + IDGO && permissions && permissions.can_update_project && isOffline() !== true @@ -686,7 +687,7 @@ export default { ...mapState([ 'last_comments', 'user', - 'reloadIntervalId' + 'reloadIntervalId', ]), ...mapState('map', [ 'map' @@ -700,6 +701,9 @@ export default { CATALOG_NAME() { return this.configuration.VUE_APP_CATALOG_NAME; }, + IDGO() { + return this.$store.state.configuration.VUE_APP_IDGO; + }, fileSize() { return fileConvertSizeToMo(this.fileToImport.size); }