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
GéoContrib
Géocontrib Frontend
Commits
75654ce1
Commit
75654ce1
authored
1 year ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
get status choices while creating feature
parent
e64d1420
No related branches found
No related tags found
1 merge request
!566
REDMINE_ISSUE-17137 | Création signalement - pas de choix de statut
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/Feature/FeatureEdit.vue
+4
-3
4 additions, 3 deletions
src/views/Feature/FeatureEdit.vue
with
4 additions
and
3 deletions
src/views/Feature/FeatureEdit.vue
+
4
−
3
View file @
75654ce1
...
...
@@ -509,11 +509,12 @@ export default {
},
},
allowedStatusChoices
()
{
// ? need to check if we could use function allowedStatus2change from utils to keep same rules ?
if
(
this
.
project
&&
this
.
currentFeature
&&
this
.
currentFeature
.
properties
&&
this
.
user
)
{
allowedStatusChoices
()
{
if
(
this
.
project
&&
this
.
user
)
{
const
isModerate
=
this
.
project
.
moderation
;
const
userStatus
=
this
.
USER_LEVEL_PROJECTS
[
this
.
project
.
slug
];
const
isOwnFeature
=
this
.
currentFeature
.
properties
.
creator
===
this
.
user
.
id
;
//* si le contributeur est l'auteur du signalement
const
isOwnFeature
=
this
.
currentFeature
&&
this
.
currentFeature
.
properties
&&
//* check if feature exist already
this
.
currentFeature
.
properties
.
creator
===
this
.
user
.
id
;
//* si le contributeur est l'auteur du signalement
return
allowedStatus2change
(
this
.
user
,
isModerate
,
userStatus
,
isOwnFeature
,
this
.
currentRouteName
);
}
return
[];
...
...
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