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
9f638f2b
Commit
9f638f2b
authored
1 year ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
adapt extraForm to work with project-attributes id
parent
6b88018c
No related branches found
No related tags found
1 merge request
!773
REDMINE_ISSUE-19721|Ajouter des attributs dans les projets
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/ExtraForm.vue
+7
-7
7 additions, 7 deletions
src/components/ExtraForm.vue
with
7 additions
and
7 deletions
src/components/ExtraForm.vue
+
7
−
7
View file @
9f638f2b
...
@@ -97,18 +97,18 @@
...
@@ -97,18 +97,18 @@
>
>
<div
<div
v-for=
"option in field.options"
v-for=
"option in field.options"
:key=
"option"
:key=
"
option.id ||
option"
class=
"ui checkbox"
class=
"ui checkbox"
>
>
<input
<input
:id=
"option"
:id=
"
option.id ||
option"
type=
"checkbox"
type=
"checkbox"
:checked=
"field.value && field.value.includes(option)"
:checked=
"field.value && field.value.includes(
option.id ||
option)"
:name=
"option"
:name=
"
option.id ||
option"
@
change=
"selectMultipleCheckbox"
@
change=
"selectMultipleCheckbox"
>
>
<label
:for=
"option"
>
<label
:for=
"
option.id ||
option"
>
{{
option
}}
{{
option
.
name
||
option
}}
</label>
</label>
</div>
</div>
</div>
</div>
...
@@ -207,7 +207,7 @@ export default {
...
@@ -207,7 +207,7 @@ export default {
set
(
newValue
)
{
set
(
newValue
)
{
//* set the value selected in the dropdown
//* set the value selected in the dropdown
if
(
this
.
useValueOnly
)
{
if
(
this
.
useValueOnly
)
{
this
.
$emit
(
'
update:value
'
,
newValue
);
this
.
$emit
(
'
update:value
'
,
newValue
.
id
||
newValue
);
}
else
{
}
else
{
const
newExtraForm
=
this
.
field
;
const
newExtraForm
=
this
.
field
;
newExtraForm
[
'
value
'
]
=
newValue
;
newExtraForm
[
'
value
'
]
=
newValue
;
...
...
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