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
97ea49c6
Commit
97ea49c6
authored
Feb 16, 2017
by
Fatih Acet
Committed by
Felipe Artur
Feb 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'add-issues-button-disable' into 'master'
Disables add issue button Closes #27931 See merge request !9100
parent
69e0c3c5
Changes
2
Hide 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 @
97ea49c6
...
...
@@ -103,7 +103,7 @@ $(() => {
},
computed: {
disabled() {
return
Store.shouldAddBlankState()
;
return
!this.store.lists.filter(list => list.type !== 'blank' && list.type !== 'done').length
;
},
},
template: `
...
...
spec/features/boards/boards_spec.rb
View file @
97ea49c6
...
...
@@ -27,6 +27,12 @@ describe 'Issue Boards', feature: true, js: true do
expect
(
page
).
to
have_content
(
'Welcome to your Issue Board!'
)
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
page
.
within
(
find
(
'.board-blank-state'
))
do
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