update fetch api

This commit is contained in:
bagus-arie05
2026-01-29 08:44:18 +07:00
parent 2bf38e0f63
commit cccefb0775
4 changed files with 40 additions and 14 deletions
+3 -3
View File
@@ -107,7 +107,7 @@ const props = defineProps({
const emit = defineEmits(['action']);
const isClickable = computed(() => {
return props.patient.status === 'diloket' || props.patient.status === 'pending';
return props.patient.status === 'di-loket' || props.patient.status === 'pending';
});
const isFastTrack = computed(() => {
@@ -177,7 +177,7 @@ const handleCardClick = () => {
const getStatusColor = (status) => {
const colors = {
diloket: "var(--color-secondary-600)",
'di-loket': "var(--color-secondary-600)",
diproses: "var(--color-primary-600)",
terlambat: "var(--color-primary-600)",
pending: "var(--color-danger-600)"
@@ -187,7 +187,7 @@ const getStatusColor = (status) => {
const getStatusLabel = (status) => {
const labels = {
diloket: "Di Loket",
'di-loket': "Di Loket",
diproses: "Diproses",
terlambat: "Terlambat",
pending: "Pending"
@@ -275,7 +275,7 @@ const searchModel = computed({
const statusOptions = computed(() => {
const baseOptions = [
{ value: 'all', label: props.statusLabels.all, count: props.items.length },
{ value: 'diloket', label: props.statusLabels.diloket, count: props.diLoketCount }
{ value: 'di-loket', label: props.statusLabels.diloket, count: props.diLoketCount }
];
// Tampilkan "Diproses" hanya jika: