PMCORE-3384:loading icon over TASK is not working

This commit is contained in:
Fabio Guachalla
2021-09-29 14:57:07 -04:00
parent 53d565be81
commit 3250662feb
2 changed files with 16 additions and 9 deletions

View File

@@ -39,10 +39,17 @@
" "
> >
<span :class="item.specialType != 'header'?'vsm--title': 'vsm--header vsm--title--header'"> <span :class="item.specialType != 'header'?'vsm--title': 'vsm--header vsm--title--header'">
<custom-tooltip <template v-if="!verifyTaskMetrics">
:data="item" <custom-tooltip
ref="tooltip" :data="item"
></custom-tooltip> ref="tooltip"
></custom-tooltip>
</template>
<template v-else>
<span>
{{ item.title }}
</span>
</template>
<span v-if="item.sortable"> <span v-if="item.sortable">
<b-icon <b-icon
:id="`gear-${item.id}`" :id="`gear-${item.id}`"
@@ -305,11 +312,10 @@ export default {
} }
}, },
/** /**
* Verify if the item is INBOX, DRAFT, PAUSED OR UNASSIGNED * Verify if the item is TASK_METRICS
* to set functionality of tooltip and highlight
*/ */
itemTaskList() { verifyTaskMetrics() {
return this.menuMap[this.item.id] !== undefined; return this.item.id === "TASK_METRICS";
}, },
/** /**
* Set color to icon defined from custom case list * Set color to icon defined from custom case list

View File

@@ -50,7 +50,7 @@ export default {
* Delay the hover event * Delay the hover event
*/ */
hoverHandler() { hoverHandler() {
this.isLoading = true; this.loading = setTimeout(() => { this.isLoading = true }, 1000) ;
this.hovering = setTimeout(() => { this.setTooltip() }, 3000); this.hovering = setTimeout(() => { this.setTooltip() }, 3000);
}, },
/** /**
@@ -61,6 +61,7 @@ export default {
this.labelDescription = ""; this.labelDescription = "";
this.showTooltip = false; this.showTooltip = false;
this.isLoading = false; this.isLoading = false;
clearTimeout(this.loading);
clearTimeout(this.hovering); clearTimeout(this.hovering);
}, },
/** /**