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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
a8fa1b26
Commit
a8fa1b26
authored
Feb 16, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'add-issues-button-disable' into 'master'
Disables add issue button Closes #27931 See merge request !9100
parents
b632bddd
2bd1a229
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
app/assets/javascripts/boards/boards_bundle.js.es6
app/assets/javascripts/boards/boards_bundle.js.es6
+1
-1
spec/features/boards/boards_spec.rb
spec/features/boards/boards_spec.rb
+6
-0
No files found.
app/assets/javascripts/boards/boards_bundle.js.es6
View file @
a8fa1b26
...
@@ -95,7 +95,7 @@ $(() => {
...
@@ -95,7 +95,7 @@ $(() => {
},
},
computed: {
computed: {
disabled() {
disabled() {
return
Store.shouldAddBlankState()
;
return
!this.store.lists.filter(list => list.type !== 'blank' && list.type !== 'done').length
;
},
},
},
},
template: `
template: `
...
...
spec/features/boards/boards_spec.rb
View file @
a8fa1b26
...
@@ -28,6 +28,12 @@ describe 'Issue Boards', feature: true, js: true do
...
@@ -28,6 +28,12 @@ describe 'Issue Boards', feature: true, js: true do
expect
(
page
).
to
have_content
(
'Welcome to your Issue Board!'
)
expect
(
page
).
to
have_content
(
'Welcome to your Issue Board!'
)
end
end
it
'disables add issues button by default'
do
button
=
page
.
find
(
'.issue-boards-search button'
,
text:
'Add issues'
)
expect
(
button
[
:disabled
]).
to
eq
true
end
it
'hides the blank state when clicking nevermind button'
do
it
'hides the blank state when clicking nevermind button'
do
page
.
within
(
find
(
'.board-blank-state'
))
do
page
.
within
(
find
(
'.board-blank-state'
))
do
click_button
(
"Nevermind, I'll use my own"
)
click_button
(
"Nevermind, I'll use my own"
)
...
...
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