Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
externe Matthieu
Géocontrib Frontend
Commits
acdc5608
Commit
acdc5608
authored
3 years ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
add parameter to disable idgo buttons
parent
fc14b3c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
public/config/config.json
+1
-0
1 addition, 0 deletions
public/config/config.json
src/views/feature_type/Feature_type_detail.vue
+9
-1
9 additions, 1 deletion
src/views/feature_type/Feature_type_detail.vue
src/views/project/Project_detail.vue
+5
-1
5 additions, 1 deletion
src/views/project/Project_detail.vue
with
15 additions
and
2 deletions
public/config/config.json
+
1
−
0
View file @
acdc5608
...
...
@@ -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"
:
""
,
...
...
This diff is collapsed.
Click to expand it.
src/views/feature_type/Feature_type_detail.vue
+
9
−
1
View file @
acdc5608
...
...
@@ -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
This diff is collapsed.
Click to expand it.
src/views/project/Project_detail.vue
+
5
−
1
View file @
acdc5608
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment