Simplify order statuses and manager actions
This commit is contained in:
@@ -5,11 +5,12 @@ import { getOrderStatusPresentation } from '~/composables/useOrderStatusPresenta
|
||||
const props = defineProps<{
|
||||
status: string;
|
||||
createdAt: string | Date;
|
||||
audience?: 'client' | 'manager';
|
||||
}>();
|
||||
|
||||
const isExpanded = ref(false);
|
||||
|
||||
const presentation = computed(() => getOrderStatusPresentation(props.status, props.createdAt));
|
||||
const presentation = computed(() => getOrderStatusPresentation(props.status, props.createdAt, props.audience ?? 'client'));
|
||||
|
||||
function itemClass(state: 'done' | 'current' | 'upcoming') {
|
||||
if (state === 'current') {
|
||||
|
||||
Reference in New Issue
Block a user