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
5fb615ea
Commit
5fb615ea
authored
Apr 20, 2017
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
same fix on stable for issue title poll on load visibility check
parent
b6b486f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
app/assets/javascripts/issue_show/issue_title.js
app/assets/javascripts/issue_show/issue_title.js
+11
-12
No files found.
app/assets/javascripts/issue_show/issue_title.js
View file @
5fb615ea
...
@@ -33,17 +33,6 @@ export default {
...
@@ -33,17 +33,6 @@ export default {
};
};
},
},
methods
:
{
methods
:
{
fetch
()
{
this
.
poll
.
makeRequest
();
Visibility
.
change
(()
=>
{
if
(
!
Visibility
.
hidden
())
{
this
.
poll
.
restart
();
}
else
{
this
.
poll
.
stop
();
}
});
},
renderResponse
(
res
)
{
renderResponse
(
res
)
{
const
body
=
JSON
.
parse
(
res
.
body
);
const
body
=
JSON
.
parse
(
res
.
body
);
this
.
triggerAnimation
(
body
);
this
.
triggerAnimation
(
body
);
...
@@ -70,7 +59,17 @@ export default {
...
@@ -70,7 +59,17 @@ export default {
},
},
},
},
created
()
{
created
()
{
this
.
fetch
();
if
(
!
Visibility
.
hidden
())
{
this
.
poll
.
makeRequest
();
}
Visibility
.
change
(()
=>
{
if
(
!
Visibility
.
hidden
())
{
this
.
poll
.
restart
();
}
else
{
this
.
poll
.
stop
();
}
});
},
},
template
:
`
template
:
`
<h2 class='title' v-html='title'></h2>
<h2 class='title' v-html='title'></h2>
...
...
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