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
2f2b42ef
Commit
2f2b42ef
authored
Mar 30, 2020
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix create epic in tree after selecting Add issue
parent
cdf6a458
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
ee/app/assets/javascripts/related_items_tree/store/mutations.js
.../assets/javascripts/related_items_tree/store/mutations.js
+2
-0
ee/changelogs/unreleased/195158-epic-tree-create-new-epic-creates-epic-that-it-thinks-is-an-iss.yml
...create-new-epic-creates-epic-that-it-thinks-is-an-iss.yml
+5
-0
ee/spec/frontend/related_items_tree/store/mutations_spec.js
ee/spec/frontend/related_items_tree/store/mutations_spec.js
+1
-0
No files found.
ee/app/assets/javascripts/related_items_tree/store/mutations.js
View file @
2f2b42ef
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
*
as
types
from
'
./mutation_types
'
;
import
*
as
types
from
'
./mutation_types
'
;
import
{
issuableTypesMap
}
from
'
ee/related_issues/constants
'
;
export
default
{
export
default
{
[
types
.
SET_INITIAL_CONFIG
](
[
types
.
SET_INITIAL_CONFIG
](
...
@@ -142,6 +143,7 @@ export default {
...
@@ -142,6 +143,7 @@ export default {
[
types
.
TOGGLE_CREATE_EPIC_FORM
](
state
,
{
toggleState
})
{
[
types
.
TOGGLE_CREATE_EPIC_FORM
](
state
,
{
toggleState
})
{
state
.
showCreateEpicForm
=
toggleState
;
state
.
showCreateEpicForm
=
toggleState
;
state
.
showAddItemForm
=
false
;
state
.
showAddItemForm
=
false
;
state
.
issuableType
=
issuableTypesMap
.
EPIC
;
},
},
[
types
.
TOGGLE_CREATE_ISSUE_FORM
](
state
,
{
toggleState
})
{
[
types
.
TOGGLE_CREATE_ISSUE_FORM
](
state
,
{
toggleState
})
{
...
...
ee/changelogs/unreleased/195158-epic-tree-create-new-epic-creates-epic-that-it-thinks-is-an-iss.yml
0 → 100644
View file @
2f2b42ef
---
title
:
Fix create epic in tree after selecting Add issue
merge_request
:
28300
author
:
type
:
fixed
ee/spec/frontend/related_items_tree/store/mutations_spec.js
View file @
2f2b42ef
...
@@ -389,6 +389,7 @@ describe('RelatedItemsTree', () => {
...
@@ -389,6 +389,7 @@ describe('RelatedItemsTree', () => {
expect
(
state
.
showCreateEpicForm
).
toBe
(
data
.
toggleState
);
expect
(
state
.
showCreateEpicForm
).
toBe
(
data
.
toggleState
);
expect
(
state
.
showAddItemForm
).
toBe
(
false
);
expect
(
state
.
showAddItemForm
).
toBe
(
false
);
expect
(
state
.
issuableType
).
toEqual
(
'
epic
'
);
});
});
});
});
...
...
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