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
f8a09735
Commit
f8a09735
authored
Nov 16, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove mocking logic.
parent
2fe23ad1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
app/assets/javascripts/time_tracking_display.js.es6
app/assets/javascripts/time_tracking_display.js.es6
+1
-10
No files found.
app/assets/javascripts/time_tracking_display.js.es6
View file @
f8a09735
...
...
@@ -3,11 +3,6 @@
//= smart_interval
//= subbable_resource
function getRandomInt(min, max) {
const justReturnZero = Math.random() > .8;
return justReturnZero ? 0 : Math.floor(Math.random() * (max - min + 1)) + min;
}
((global) => {
/* This Vue instance represents what will become the parent instance for the
* sidebar. It will be responsible for managing `issuable` state and propagating
...
...
@@ -40,10 +35,6 @@ function getRandomInt(min, max) {
});
},
updateState(data) {
/* MOCK */
data.time_estimate = getRandomInt(0, 100000)
data.time_spent = getRandomInt(0, 100000);
this.issuable = data;
},
subscribeToUpdates() {
...
...
@@ -54,7 +45,7 @@ function getRandomInt(min, max) {
// TODO: check if slash command was updated.
this.fetchIssuable();
});
}
}
,
},
mounted() {
this.initPolling();
...
...
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