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
Tatuya Kamada
gitlab-ce
Commits
a96499cf
Commit
a96499cf
authored
Dec 02, 2016
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce heavy references
parent
c55ba052
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/vue_pipelines_index/pipelines.js.es6
app/assets/javascripts/vue_pipelines_index/pipelines.js.es6
+2
-2
app/assets/javascripts/vue_pipelines_index/store.js.es6
app/assets/javascripts/vue_pipelines_index/store.js.es6
+1
-1
app/assets/javascripts/vue_pipelines_index/time_ago.js.es6
app/assets/javascripts/vue_pipelines_index/time_ago.js.es6
+1
-1
No files found.
app/assets/javascripts/vue_pipelines_index/pipelines.js.es6
View file @
a96499cf
...
@@ -83,8 +83,8 @@
...
@@ -83,8 +83,8 @@
};
};
return commitRef;
return commitRef;
},
},
addTimeInterval(id,
tha
t) {
addTimeInterval(id,
star
t) {
this.allTimeIntervals.push({ id,
component: tha
t });
this.allTimeIntervals.push({ id,
star
t });
},
},
},
},
template: `
template: `
...
...
app/assets/javascripts/vue_pipelines_index/store.js.es6
View file @
a96499cf
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
};
};
const startIntervalLoops = () => {
const startIntervalLoops = () => {
this.allTimeIntervals.forEach(e => e.
component.startInterval
());
this.allTimeIntervals.forEach(e => e.
start
());
};
};
window.onbeforeunload = function onClose() {
window.onbeforeunload = function onClose() {
...
...
app/assets/javascripts/vue_pipelines_index/time_ago.js.es6
View file @
a96499cf
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
this.currentTime = new Date();
this.currentTime = new Date();
}, 1000);
}, 1000);
this.addTimeInterval(this.timeInterval, this);
this.addTimeInterval(this.timeInterval, this
.startInterval
);
},
},
computed: {
computed: {
localTimeFinished() {
localTimeFinished() {
...
...
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