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
c7d5507b
Commit
c7d5507b
authored
Sep 06, 2019
by
Lee Tickett
Committed by
Kushal Pandya
Sep 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Imrpoved unapproved MR merge button text"
This reverts commit c29f26a880884f118f60d207c808f1806dd9030d.
parent
02e00693
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
3 deletions
+38
-3
app/assets/javascripts/boards/components/board_new_issue.vue
app/assets/javascripts/boards/components/board_new_issue.vue
+5
-1
ee/app/assets/javascripts/boards/models/issue.js
ee/app/assets/javascripts/boards/models/issue.js
+0
-2
ee/changelogs/unreleased/show-weight-on-new-board-issue.yml
ee/changelogs/unreleased/show-weight-on-new-board-issue.yml
+5
-0
spec/javascripts/boards/board_new_issue_spec.js
spec/javascripts/boards/board_new_issue_spec.js
+26
-0
spec/javascripts/boards/mock_data.js
spec/javascripts/boards/mock_data.js
+2
-0
No files found.
app/assets/javascripts/boards/components/board_new_issue.vue
View file @
c7d5507b
...
...
@@ -2,9 +2,9 @@
import
$
from
'
jquery
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
{
getMilestone
}
from
'
ee_else_ce/boards/boards_util
'
;
import
ListIssue
from
'
ee_else_ce/boards/models/issue
'
;
import
eventHub
from
'
../eventhub
'
;
import
ProjectSelect
from
'
./project_select.vue
'
;
import
ListIssue
from
'
../models/issue
'
;
import
boardsStore
from
'
../stores/boards_store
'
;
export
default
{
...
...
@@ -54,6 +54,9 @@ export default {
const
assignees
=
this
.
list
.
assignee
?
[
this
.
list
.
assignee
]
:
[];
const
milestone
=
getMilestone
(
this
.
list
);
const
{
weightFeatureAvailable
}
=
boardsStore
;
const
{
weight
}
=
weightFeatureAvailable
?
boardsStore
.
state
.
currentBoard
:
{};
const
issue
=
new
ListIssue
({
title
:
this
.
title
,
labels
,
...
...
@@ -61,6 +64,7 @@ export default {
assignees
,
milestone
,
project_id
:
this
.
selectedProject
.
id
,
weight
,
});
eventHub
.
$emit
(
`scroll-board-list-
${
this
.
list
.
id
}
`
);
...
...
ee/app/assets/javascripts/boards/models/issue.js
View file @
c7d5507b
...
...
@@ -7,8 +7,6 @@ class ListIssueEE extends ListIssue {
IssueProject
,
});
this
.
isFetching
.
weight
=
true
;
this
.
isLoading
.
weight
=
false
;
this
.
weight
=
obj
.
weight
;
if
(
obj
.
project
)
{
...
...
ee/changelogs/unreleased/show-weight-on-new-board-issue.yml
0 → 100644
View file @
c7d5507b
---
title
:
Show weight on new board issue
merge_request
:
16028
author
:
Lee Tickett
type
:
fixed
spec/javascripts/boards/board_new_issue_spec.js
View file @
c7d5507b
...
...
@@ -171,6 +171,32 @@ describe('Issue boards new issue form', () => {
.
then
(
done
)
.
catch
(
done
.
fail
);
});
it
(
'
sets detail weight after submit
'
,
done
=>
{
boardsStore
.
weightFeatureAvailable
=
true
;
vm
.
title
=
'
submit issue
'
;
Vue
.
nextTick
()
.
then
(
submitIssue
)
.
then
(()
=>
{
expect
(
boardsStore
.
detail
.
list
.
weight
).
toBe
(
list
.
weight
);
})
.
then
(
done
)
.
catch
(
done
.
fail
);
});
it
(
'
does not set detail weight after submit
'
,
done
=>
{
boardsStore
.
weightFeatureAvailable
=
false
;
vm
.
title
=
'
submit issue
'
;
Vue
.
nextTick
()
.
then
(
submitIssue
)
.
then
(()
=>
{
expect
(
boardsStore
.
detail
.
list
.
weight
).
toBe
(
list
.
weight
);
})
.
then
(
done
)
.
catch
(
done
.
fail
);
});
});
describe
(
'
submit error
'
,
()
=>
{
...
...
spec/javascripts/boards/mock_data.js
View file @
c7d5507b
...
...
@@ -12,6 +12,7 @@ export const listObj = {
position
:
0
,
title
:
'
Test
'
,
list_type
:
'
label
'
,
weight
:
3
,
label
:
{
id
:
5000
,
title
:
'
Testing
'
,
...
...
@@ -26,6 +27,7 @@ export const listObjDuplicate = {
position
:
1
,
title
:
'
Test
'
,
list_type
:
'
label
'
,
weight
:
3
,
label
:
{
id
:
listObj
.
label
.
id
,
title
:
'
Testing
'
,
...
...
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