fix: dynamic status icon color in dropdown
This commit is contained in:
parent
a24b207c92
commit
a0e3237de6
@ -122,7 +122,7 @@ import {
|
|||||||
} from 'frappe-ui'
|
} from 'frappe-ui'
|
||||||
import { TransitionPresets, useTransition } from '@vueuse/core'
|
import { TransitionPresets, useTransition } from '@vueuse/core'
|
||||||
import { usersStore } from '@/stores/users'
|
import { usersStore } from '@/stores/users'
|
||||||
import { ref, computed } from 'vue'
|
import { ref, computed, h } from 'vue'
|
||||||
import Breadcrumbs from '@/components/Breadcrumbs.vue'
|
import Breadcrumbs from '@/components/Breadcrumbs.vue'
|
||||||
|
|
||||||
const { getUser } = usersStore()
|
const { getUser } = usersStore()
|
||||||
@ -220,35 +220,35 @@ function onTabChange(index) {
|
|||||||
const statusDropdownOptions = [
|
const statusDropdownOptions = [
|
||||||
{
|
{
|
||||||
label: 'New',
|
label: 'New',
|
||||||
icon: IndicatorIcon,
|
icon: () => h(IndicatorIcon, { class: '!text-gray-600' }),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
lead.doc.status = 'New'
|
lead.doc.status = 'New'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Contact made',
|
label: 'Contact made',
|
||||||
icon: IndicatorIcon,
|
icon: () => h(IndicatorIcon, { class: 'text-orange-600' }),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
lead.doc.status = 'Contact made'
|
lead.doc.status = 'Contact made'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Proposal made',
|
label: 'Proposal made',
|
||||||
icon: IndicatorIcon,
|
icon: () => h(IndicatorIcon, { class: '!text-blue-600' }),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
lead.doc.status = 'Proposal made'
|
lead.doc.status = 'Proposal made'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Negotiation',
|
label: 'Negotiation',
|
||||||
icon: IndicatorIcon,
|
icon: () => h(IndicatorIcon, { class: 'text-red-600' }),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
lead.doc.status = 'Negotiation'
|
lead.doc.status = 'Negotiation'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Converted',
|
label: 'Converted',
|
||||||
icon: IndicatorIcon,
|
icon: () => h(IndicatorIcon, { class: 'text-green-600' }),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
lead.doc.status = 'Converted'
|
lead.doc.status = 'Converted'
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user