Commit baaaf4e9 authored by Filipa Lacerda's avatar Filipa Lacerda

Destroy tooltip in async buttons and tooltips

parent aecaaa67
......@@ -35,6 +35,8 @@ export default {
onClickAction(endpoint) {
this.isLoading = true;
$('.has-tooltip').tooltip('destroy');
this.service.postAction(endpoint)
.then(() => {
this.isLoading = false;
......
......@@ -36,6 +36,8 @@ export default {
onClick() {
this.isLoading = true;
$('.has-tooltip').tooltip('destroy');
this.service.postAction(this.retryUrl)
.then(() => {
this.isLoading = false;
......
......@@ -36,6 +36,8 @@ export default {
if (confirm('Are you sure you want to stop this environment?')) {
this.isLoading = true;
$('.has-tooltip').tooltip('destroy');
this.service.postAction(this.retryUrl)
.then(() => {
this.isLoading = false;
......
......@@ -65,6 +65,8 @@ export default {
makeRequest() {
this.isLoading = true;
$('.has-tooltip').tooltip('destroy');
this.service.postAction(this.endpoint)
.then(() => {
this.isLoading = false;
......
......@@ -28,6 +28,8 @@ export default {
onClickAction(endpoint) {
this.isLoading = true;
$('.has-tooltip').tooltip('destroy');
this.service.postAction(endpoint)
.then(() => {
this.isLoading = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment