PMCORE-3284:UI - set the color in the icon for custom case list
correction menu documentation CR
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<h6>
|
<h6>
|
||||||
{{ dataSubtitle.subtitle }}
|
{{ dataSubtitle.subtitle }}
|
||||||
<span>
|
<span>
|
||||||
<i :class="dataSubtitle.icon"></i>
|
<i :class="dataSubtitle.icon" v-bind:style="setIconColor"></i>
|
||||||
</span>
|
</span>
|
||||||
</h6>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
@@ -43,6 +43,16 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
computed : {
|
||||||
|
/**
|
||||||
|
* Set color to icon defined from custom case list
|
||||||
|
*/
|
||||||
|
setIconColor() {
|
||||||
|
return {
|
||||||
|
color: this.dataSubtitle.color ? this.dataSubtitle.color : '#000'
|
||||||
|
};
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
classBtn(cls) {
|
classBtn(cls) {
|
||||||
return "btn btn-slim btn-force-radius v-btn-header " + cls;
|
return "btn btn-slim btn-force-radius v-btn-header " + cls;
|
||||||
@@ -55,8 +65,6 @@ export default {
|
|||||||
.pm-multiview-header {
|
.pm-multiview-header {
|
||||||
margin-bottom: 7px;
|
margin-bottom: 7px;
|
||||||
}
|
}
|
||||||
.pm-multiview-header-title {
|
|
||||||
}
|
|
||||||
.pm-multiview-header-actions-buttons {
|
.pm-multiview-header-actions-buttons {
|
||||||
text-align: end;
|
text-align: end;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
<custom-sidebar-menu-icon
|
<custom-sidebar-menu-icon
|
||||||
v-if="item.icon && !isMobileItem"
|
v-if="item.icon && !isMobileItem"
|
||||||
:icon="item.icon"
|
:icon="item.icon"
|
||||||
|
v-bind:style="setIconColor"
|
||||||
/>
|
/>
|
||||||
<transition name="fade-animation" :appear="isMobileItem">
|
<transition name="fade-animation" :appear="isMobileItem">
|
||||||
<template
|
<template
|
||||||
@@ -39,10 +40,15 @@
|
|||||||
>
|
>
|
||||||
|
|
||||||
<span class="vsm--title">
|
<span class="vsm--title">
|
||||||
<custom-tooltip
|
<template v-if="itemHasChild">
|
||||||
:data="item"
|
<custom-tooltip
|
||||||
ref="tooltip"
|
:data="item"
|
||||||
></custom-tooltip>
|
ref="tooltip"
|
||||||
|
></custom-tooltip>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<span> {{ item.title }} </span>
|
||||||
|
</template>
|
||||||
<b-icon
|
<b-icon
|
||||||
v-if="item.sortable"
|
v-if="item.sortable"
|
||||||
:icon="item.sortIcon"
|
:icon="item.sortIcon"
|
||||||
@@ -281,6 +287,14 @@ export default {
|
|||||||
return this.item.hidden === true;
|
return this.item.hidden === true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* Set color to icon defined from custom case list
|
||||||
|
*/
|
||||||
|
setIconColor() {
|
||||||
|
return {
|
||||||
|
color: this.item.color ? this.item.color : '#fff'
|
||||||
|
};
|
||||||
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route() {
|
$route() {
|
||||||
|
|||||||
@@ -468,7 +468,8 @@ export default {
|
|||||||
showEllipsis: false,
|
showEllipsis: false,
|
||||||
dataSubtitle: {
|
dataSubtitle: {
|
||||||
subtitle: this.data.pageName,
|
subtitle: this.data.pageName,
|
||||||
icon: this.data.pageIcon
|
icon: this.data.pageIcon,
|
||||||
|
color: this.data.color
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -806,7 +807,8 @@ export default {
|
|||||||
}
|
}
|
||||||
this.dataSubtitle = {
|
this.dataSubtitle = {
|
||||||
subtitle: newData.pageName,
|
subtitle: newData.pageName,
|
||||||
icon: newData.pageIcon
|
icon: newData.pageIcon,
|
||||||
|
color: newData.color
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.typeView === "GRID" && this.$refs["vueTable"]) {
|
if (this.typeView === "GRID" && this.$refs["vueTable"]) {
|
||||||
|
|||||||
@@ -401,7 +401,8 @@ export default {
|
|||||||
pageParent: item.item.page,
|
pageParent: item.item.page,
|
||||||
pageName: item.item.title,
|
pageName: item.item.title,
|
||||||
pageIcon: item.item.icon,
|
pageIcon: item.item.icon,
|
||||||
customListId: item.item.id
|
customListId: item.item.id,
|
||||||
|
color: item.item.colorScreen
|
||||||
}
|
}
|
||||||
if (this.config.setting[item.item.page] && this.config.setting[item.item.page]["customCaseList"]) {
|
if (this.config.setting[item.item.page] && this.config.setting[item.item.page]["customCaseList"]) {
|
||||||
this.settings = this.config.setting[item.item.page]["customCaseList"][item.item.id];
|
this.settings = this.config.setting[item.item.page]["customCaseList"][item.item.id];
|
||||||
|
|||||||
@@ -112,6 +112,7 @@
|
|||||||
|
|
||||||
.vsm--link_level-2>.vsm--icon {
|
.vsm--link_level-2>.vsm--icon {
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.v-sidebar-menu .vsm--arrow {
|
.v-sidebar-menu .vsm--arrow {
|
||||||
@@ -196,8 +197,10 @@
|
|||||||
background-color: transparent !important
|
background-color: transparent !important
|
||||||
}
|
}
|
||||||
|
|
||||||
.v-sidebar-menu.vsm_collapsed .vsm--link_level-1 .vsm--icon {
|
.v-sidebar-menu.vsm_collapsed .vsm--link_level-1 .vsm--icon,
|
||||||
margin-right: 0px
|
.v-sidebar-menu.vsm_collapsed .vsm--link_level-2 > .vsm--icon {
|
||||||
|
margin-right: 0px;
|
||||||
|
padding-left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.v-sidebar-menu.vsm_rtl {
|
.v-sidebar-menu.vsm_rtl {
|
||||||
|
|||||||
Reference in New Issue
Block a user