Apply overdue/today/upcoming date colors on sales deal cards as well.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -103,10 +103,9 @@ function onTitleClick() {
|
||||
else emit('open', props.deal.id);
|
||||
}
|
||||
|
||||
/** موعد: انجامشده سبز · عقبافتاده قرمز · امروز زرد · آینده خاکستری */
|
||||
/** موعد: (فقط فعالیت) انجامشده سبز · عقبافتاده قرمز · امروز زرد · آینده/بیموعد خاکستری */
|
||||
const dueTone = computed<'done' | 'overdue' | 'today' | 'upcoming' | 'none'>(() => {
|
||||
if (!props.copy.quickView) return 'none';
|
||||
if (props.deal.activityStatus === 'done') return 'done';
|
||||
if (props.copy.quickView && props.deal.activityStatus === 'done') return 'done';
|
||||
if (!props.deal.dateIso) return 'none';
|
||||
const due = new Date(props.deal.dateIso);
|
||||
if (Number.isNaN(due.getTime())) return 'none';
|
||||
|
||||
Reference in New Issue
Block a user