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
dbfac4f8
Commit
dbfac4f8
authored
Mar 08, 2020
by
Donald Cook
Committed by
Natalia Tepluhina
Mar 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent non decimal, non numerical, non negative entry of limit
parent
eb25d62e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
ee/app/assets/javascripts/boards/components/board_settings_sidebar.vue
.../javascripts/boards/components/board_settings_sidebar.vue
+3
-0
ee/spec/frontend/boards/components/board_settings_sidebar_spec.js
...frontend/boards/components/board_settings_sidebar_spec.js
+14
-0
No files found.
ee/app/assets/javascripts/boards/components/board_settings_sidebar.vue
View file @
dbfac4f8
...
...
@@ -212,6 +212,9 @@ export default {
:disabled=
"updating"
:placeholder=
"$options.inputPlaceholderText"
trim
number
type=
"number"
min=
"0"
@
input=
"handleWipLimitChange"
@
keydown.enter.native=
"onEnter"
@
blur=
"offFocus"
...
...
ee/spec/frontend/boards/components/board_settings_sidebar_spec.js
View file @
dbfac4f8
...
...
@@ -501,5 +501,19 @@ describe('BoardSettingsSideBar', () => {
});
});
});
describe
(
'
passing of props to gl-form-input
'
,
()
=>
{
beforeEach
(()
=>
{
createComponent
({
activeListId
:
listId
},
{
updateListWipLimit
:
()
=>
{}
},
{
edit
:
true
});
});
it
(
'
passes `trim`
'
,
()
=>
{
expect
(
wrapper
.
find
(
GlFormInput
).
attributes
().
trim
).
toBeDefined
();
});
it
(
'
passes `number`
'
,
()
=>
{
expect
(
wrapper
.
find
(
GlFormInput
).
attributes
().
number
).
toBeDefined
();
});
});
});
});
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