PMCORE-3267: subtitles does not work

This commit is contained in:
Rodrigo Quelca
2021-09-01 13:13:43 +00:00
parent 602e4ec0b1
commit 0b4d0d7684

View File

@@ -6,8 +6,8 @@
<ModalReassignCase ref="modal-reassign-case"></ModalReassignCase> <ModalReassignCase ref="modal-reassign-case"></ModalReassignCase>
<CasesFilter <CasesFilter
:filters="filters" :filters="filters"
:title="data.pageName" :title="titleMap[data.pageParent].label"
:icon="data.pageIcon" :icon="titleMap[data.pageParent].icon"
@onRemoveFilter="onRemoveFilter" @onRemoveFilter="onRemoveFilter"
@onUpdateFilters="onUpdateFilters" @onUpdateFilters="onUpdateFilters"
/> />
@@ -347,6 +347,24 @@ export default {
data() { data() {
let that = this; let that = this;
return { return {
titleMap: {
inbox: {
icon:"fas fa-check-circle",
label: this.$i18n.t('ID_INBOX')
},
draft: {
icon:"fas fa-edit",
label: this.$i18n.t('ID_DRAFT')
},
paused: {
icon:"far fa-pause-circle",
label: this.$i18n.t('ID_PAUSED')
},
unassigned: {
icon:"fas fa-users",
label: this.$i18n.t('ID_UNASSIGNED')
}
},
columMap: { columMap: {
case_number: "APP_NUMBER", case_number: "APP_NUMBER",
case_title: "DEL_TITLE", case_title: "DEL_TITLE",
@@ -448,7 +466,10 @@ export default {
buttons: {}, buttons: {},
}, },
showEllipsis: false, showEllipsis: false,
dataSubtitle: null, dataSubtitle: {
subtitle: this.data.pageName,
icon: this.data.pageIcon
},
}; };
}, },
created() { created() {
@@ -776,9 +797,15 @@ export default {
this.isFistTime = true; this.isFistTime = true;
this.typeView = "GRID"; this.typeView = "GRID";
// force to update component id // force to update component id
if (newData && newData.customListId) { if (newData){
if(newData.customListId) {
this.data.customListId = newData.customListId; this.data.customListId = newData.customListId;
} }
this.dataSubtitle = {
subtitle: newData.pageName,
icon: newData.pageIcon
}
}
if (this.typeView === "GRID" && this.$refs["vueTable"]) { if (this.typeView === "GRID" && this.$refs["vueTable"]) {
this.$refs["vueTable"].getData(); this.$refs["vueTable"].getData();
} }