Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bf01c551
Commit
bf01c551
authored
Dec 24, 2020
by
NataliaTepluhina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added condition for mutation input
parent
5dc5bd3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
app/assets/javascripts/boards/components/board_form.vue
app/assets/javascripts/boards/components/board_form.vue
+17
-11
No files found.
app/assets/javascripts/boards/components/board_form.vue
View file @
bf01c551
...
...
@@ -162,21 +162,27 @@ export default {
mutationVariables
()
{
const
{
board
}
=
this
;
/* eslint-disable @gitlab/require-i18n-strings */
cons
t
baseMutationVariables
=
{
le
t
baseMutationVariables
=
{
name
:
board
.
name
,
weight
:
board
.
weight
,
assigneeId
:
board
.
assignee
?.
id
?
convertToGraphQLId
(
'
User
'
,
board
.
assignee
.
id
)
:
null
,
milestoneId
:
board
.
milestone
?.
id
||
board
.
milestone
?.
id
===
0
?
convertToGraphQLId
(
'
Milestone
'
,
board
.
milestone
.
id
)
:
null
,
labelIds
:
board
.
labels
.
map
(
fullLabelId
),
hideBacklogList
:
board
.
hide_backlog_list
,
hideClosedList
:
board
.
hide_closed_list
,
iterationId
:
board
.
iteration_id
?
convertToGraphQLId
(
'
Iteration
'
,
board
.
iteration_id
)
:
null
,
};
if
(
this
.
scopedIssueBoardFeatureEnabled
)
{
baseMutationVariables
=
{
...
baseMutationVariables
,
weight
:
board
.
weight
,
assigneeId
:
board
.
assignee
?.
id
?
convertToGraphQLId
(
'
User
'
,
board
.
assignee
.
id
)
:
null
,
milestoneId
:
board
.
milestone
?.
id
||
board
.
milestone
?.
id
===
0
?
convertToGraphQLId
(
'
Milestone
'
,
board
.
milestone
.
id
)
:
null
,
labelIds
:
board
.
labels
.
map
(
fullLabelId
),
iterationId
:
board
.
iteration_id
?
convertToGraphQLId
(
'
Iteration
'
,
board
.
iteration_id
)
:
null
,
};
}
/* eslint-enable @gitlab/require-i18n-strings */
return
board
.
id
?
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment