diff --git a/components/pendaftaran/CardAntrianList.vue b/components/pendaftaran/CardAntrianList.vue index 6b898a5..e217038 100644 --- a/components/pendaftaran/CardAntrianList.vue +++ b/components/pendaftaran/CardAntrianList.vue @@ -201,7 +201,7 @@ onUnmounted(() => { No Spesialis : {{ item.NoUrutSpesialis }} - No SubSpesialis : {{ item.NoUrutSubSpesialis }} + No Sub Spesialis : {{ item.NoUrutSubSpesialis }} diff --git a/components/pendaftaran/ModalUpdateStatus.vue b/components/pendaftaran/ModalUpdateStatus.vue index 47aac61..26a5c4b 100644 --- a/components/pendaftaran/ModalUpdateStatus.vue +++ b/components/pendaftaran/ModalUpdateStatus.vue @@ -1,6 +1,6 @@ - + { - - - {{ snackbarMessage }} - - - Close - - - - (null); const selectedIdForEdit = ref(null); const selectedIdForStatus = ref(null); -// Snackbar state -const snackbar = ref(false); -const snackbarMessage = ref(''); -const snackbarColor = ref('success'); - const showSnackbar = (message: string, color: string = 'success') => { - snackbarMessage.value = message; - snackbarColor.value = color; - snackbar.value = true; + pendaftaranStore.showSnackbar(message, color); }; // Define filter options @@ -91,13 +86,13 @@ const fetchData = async (append: boolean = false) => { const offset = (currentPage.value - 1) * itemsPerPage.value; let sortBy: string | undefined; let sortOrder: string | undefined; - + if (filterValues.value.sortOption && filterValues.value.sortOption !== null) { const parts = filterValues.value.sortOption.split('|'); sortBy = parts[0]; sortOrder = parts[1]; } - + const response = await getAntrianOperasi({ type: 'kategori', limit: itemsPerPage.value, @@ -116,7 +111,7 @@ const fetchData = async (append: boolean = false) => { antreanList.value = response.data; } totalItems.value = response.Paginate.Total; - + // Check if there's more data const totalLoaded = currentPage.value * itemsPerPage.value; hasMore.value = totalLoaded < response.Paginate.Total; @@ -215,7 +210,7 @@ const handleUpdateStatus = async (item: unknown) => { const handleDelete = async (item: unknown) => { const data = item as AntreanOperasi; - if(confirm('Apakah Anda yakin ingin menghapus data ini?')) { + if (confirm('Apakah Anda yakin ingin menghapus data ini?')) { try { const response = await deleteAntrianOperasi(data.id); if (response.success) { @@ -257,90 +252,39 @@ const handleUpdateStatusSuccess = () => { - - - - - - - - - + + + + - - - Pendaftaran Operasi Baru - - + + - - - + + + Pendaftaran Operasi Baru + + + + - - - {{ snackbarMessage }} - - - Close - - - - - + - + - + - + diff --git a/pages/antrean/spesialis/[kode].vue b/pages/antrean/spesialis/[kode].vue index 9fb1517..74c0e03 100644 --- a/pages/antrean/spesialis/[kode].vue +++ b/pages/antrean/spesialis/[kode].vue @@ -1,6 +1,6 @@