diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-04-19 12:50:06 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-04-19 12:50:06 +0300 |
commit | 8752b99f88f631d0e63c4795b89d3eec50b21274 (patch) | |
tree | e3f5268daf7bfc83ae45905742f7872f68dadaf7 /app/assets/javascripts/environments/components | |
parent | 4038d50db0b33cb223108a6a0f4fd9b3e44a95c1 (diff) |
Only destroy the component's tooltip
Diffstat (limited to 'app/assets/javascripts/environments/components')
3 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/environments/components/environment_actions.js b/app/assets/javascripts/environments/components/environment_actions.js index c199c7abcac..1f325d66e87 100644 --- a/app/assets/javascripts/environments/components/environment_actions.js +++ b/app/assets/javascripts/environments/components/environment_actions.js @@ -35,7 +35,7 @@ export default { onClickAction(endpoint) { this.isLoading = true; - $('.has-tooltip').tooltip('destroy'); + $(this.$el.querySelector('.has-tooltip')).tooltip('destroy'); this.service.postAction(endpoint) .then(() => { diff --git a/app/assets/javascripts/environments/components/environment_rollback.js b/app/assets/javascripts/environments/components/environment_rollback.js index 7f3c4b78a51..7cbfb651525 100644 --- a/app/assets/javascripts/environments/components/environment_rollback.js +++ b/app/assets/javascripts/environments/components/environment_rollback.js @@ -36,7 +36,7 @@ export default { onClick() { this.isLoading = true; - $('.has-tooltip').tooltip('destroy'); + $(this.$el).tooltip('destroy'); this.service.postAction(this.retryUrl) .then(() => { diff --git a/app/assets/javascripts/environments/components/environment_stop.js b/app/assets/javascripts/environments/components/environment_stop.js index 949de9a9604..9e5465c1785 100644 --- a/app/assets/javascripts/environments/components/environment_stop.js +++ b/app/assets/javascripts/environments/components/environment_stop.js @@ -36,7 +36,7 @@ export default { if (confirm('Are you sure you want to stop this environment?')) { this.isLoading = true; - $('.has-tooltip').tooltip('destroy'); + $(this.$el).tooltip('destroy'); this.service.postAction(this.retryUrl) .then(() => { |