Merged in bugfix/PMCORE-3384 (pull request #8187)

PMCORE-3384

Approved-by: Rodrigo Quelca
This commit is contained in:
Fabio Guachalla
2021-09-29 20:48:00 +00:00
committed by Julio Cesar Laura Avendaño
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'">
<custom-tooltip
:data="item"
ref="tooltip"
></custom-tooltip>
<template v-if="!verifyTaskMetrics">
<custom-tooltip
:data="item"
ref="tooltip"
></custom-tooltip>
</template>
<template v-else>
<span>
{{ item.title }}
</span>
</template>
<span v-if="item.sortable">
<b-icon
:id="`gear-${item.id}`"
@@ -305,11 +312,10 @@ export default {
}
},
/**
* Verify if the item is INBOX, DRAFT, PAUSED OR UNASSIGNED
* to set functionality of tooltip and highlight
* Verify if the item is TASK_METRICS
*/
itemTaskList() {
return this.menuMap[this.item.id] !== undefined;
verifyTaskMetrics() {
return this.item.id === "TASK_METRICS";
},
/**
* Set color to icon defined from custom case list

View File

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