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

add parameter to disable idgo buttons

parent fc14b3c2
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
"VUE_APP_LOGO_PATH":"/geocontrib/img/logo-neogeo-circle.png",
"VUE_APP_DJANGO_BASE":"http://localhost:8010",
"VUE_APP_DJANGO_API_BASE":"http://localhost:8010/api/",
"VUE_APP_IDGO": false,
"VUE_APP_RELOAD_INTERVAL": 15000,
"VUE_APP_DISABLE_LOGIN_BUTTON":false,
"VUE_APP_LOGIN_URL":"",
......
......@@ -88,6 +88,7 @@
<router-link
v-if="
IDGO &&
permissions &&
permissions.can_create_feature
"
......@@ -101,7 +102,7 @@
class="ui icon button import-catalog"
>Créer un nouveau type de signalement à partir du catalogue Datasud
</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">
......@@ -289,6 +290,9 @@ export default {
'feature_types',
'importFeatureTypeData'
]),
IDGO() {
return this.$store.state.configuration.VUE_APP_IDGO;
},
structure: function () {
if (Object.keys(this.feature_types).length) {
let st = this.feature_types.find(
......@@ -503,4 +507,8 @@ export default {
.import-catalog {
margin-bottom: 1em;
}
.no-hover {
cursor: default;
}
</style>
\ No newline at end of file
......@@ -327,6 +327,7 @@
<div class="nouveau-type-signalement">
<router-link
v-if="
IDGO &&
permissions &&
permissions.can_update_project &&
isOffline() !== true
......@@ -683,7 +684,7 @@ export default {
...mapState([
'last_comments',
'user',
'reloadIntervalId'
'reloadIntervalId',
]),
...mapState('map', [
'map'
......@@ -694,6 +695,9 @@ export default {
API_BASE_URL() {
return this.$store.state.configuration.VUE_APP_DJANGO_API_BASE;
},
IDGO() {
return this.$store.state.configuration.VUE_APP_IDGO;
},
fileSize() {
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