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
Léo-Paul Géneau
gitlab-ce
Commits
2afff609
Commit
2afff609
authored
7 years ago
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use refs instead of query the DOM
parent
6c3038e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app/assets/javascripts/environments/components/environment_actions.js
...avascripts/environments/components/environment_actions.js
+2
-1
app/assets/javascripts/pipelines/components/pipelines_actions.js
...ets/javascripts/pipelines/components/pipelines_actions.js
+2
-1
No files found.
app/assets/javascripts/environments/components/environment_actions.js
View file @
2afff609
...
...
@@ -35,7 +35,7 @@ export default {
onClickAction
(
endpoint
)
{
this
.
isLoading
=
true
;
$
(
this
.
$
el
.
querySelector
(
'
.has-tooltip
'
)
).
tooltip
(
'
destroy
'
);
$
(
this
.
$
refs
.
tooltip
).
tooltip
(
'
destroy
'
);
this
.
service
.
postAction
(
endpoint
)
.
then
(()
=>
{
...
...
@@ -64,6 +64,7 @@ export default {
class="dropdown btn btn-default dropdown-new js-dropdown-play-icon-container has-tooltip"
data-container="body"
data-toggle="dropdown"
ref="tooltip"
:title="title"
:aria-label="title"
:disabled="isLoading">
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/pipelines/components/pipelines_actions.js
View file @
2afff609
...
...
@@ -28,7 +28,7 @@ export default {
onClickAction
(
endpoint
)
{
this
.
isLoading
=
true
;
$
(
this
.
$
el
.
querySelector
(
'
.has-tooltip
'
)
).
tooltip
(
'
destroy
'
);
$
(
this
.
$
refs
.
tooltip
).
tooltip
(
'
destroy
'
);
this
.
service
.
postAction
(
endpoint
)
.
then
(()
=>
{
...
...
@@ -59,6 +59,7 @@ export default {
data-toggle="dropdown"
data-placement="top"
aria-label="Manual job"
ref="tooltip"
:disabled="isLoading">
${
playIconSvg
}
<i
...
...
This diff is collapsed.
Click to expand it.
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