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
129e3474
Commit
129e3474
authored
Nov 16, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve random data config.
parent
fafc15f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/time_tracking_display.js.es6
app/assets/javascripts/time_tracking_display.js.es6
+3
-3
No files found.
app/assets/javascripts/time_tracking_display.js.es6
View file @
129e3474
...
...
@@ -4,7 +4,7 @@
//= subbable_resource
function getRandomInt(min, max) {
const justReturnZero = Math.random() > .
5
;
const justReturnZero = Math.random() > .
8
;
return justReturnZero ? 0 : Math.floor(Math.random() * (max - min + 1)) + min;
}
...
...
@@ -41,8 +41,8 @@ function getRandomInt(min, max) {
},
updateState(data) {
/* MOCK */
data.time_estimate = getRandomInt(0, 10000)
data.time_spent = getRandomInt(0, 10000);
data.time_estimate = getRandomInt(0, 10000
0
)
data.time_spent = getRandomInt(0, 10000
0
);
this.issuable = data;
},
...
...
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