提交 baaaf4e9 编写于 作者: F Filipa Lacerda

Destroy tooltip in async buttons and tooltips

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册