Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Sep 14, 2024
2 parents c8b890b + 75b9b46 commit a88b78b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion resources/js/Components/POS/DashboardButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const props = defineProps({
type: String,
default: ''
},
method: {
type: String,
default: 'GET'
},
icon: {
type: String,
default: ''
Expand All @@ -22,7 +26,7 @@ const props = defineProps({
</script>

<template>
<component :is="(route) ? Link : 'div'" :href="route">
<component :is="(route) ? Link : 'div'" :href="route" :method="method">
<div class="
h-full
px-10
Expand Down
4 changes: 2 additions & 2 deletions resources/js/Pages/POS/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const buttons = [
{ label: "Lookup Attendee", route: route('pos.attendee.lookup'), icon: 'pi pi-id-card' },
{ label: "Badge List", route: '#', icon: 'pi pi-database' },
{ label: "Park Tickets", route: '#', icon: 'pi pi-euro' },
{ label: "Logout", route: '#', icon: 'pi pi-wallet' },
{ label: "Switch User", route: route('pos.auth.user.logout'), icon: 'pi pi-sign-out', method: 'POST' },
];
</script>

Expand All @@ -21,6 +21,6 @@ const buttons = [
</Head>
<!-- Grid System for POS -->
<div class="grid lg:grid-cols-4 lg:grid-rows-4 gap-2 h-full px-4 pb-4">
<DashboardButton :label="i.label" :icon="i.icon" :route="i.route" v-for="i in buttons">test</DashboardButton>
<DashboardButton :label="i.label" :icon="i.icon" :route="i.route" :method="i.method" v-for="i in buttons">test</DashboardButton>
</div>
</template>

0 comments on commit a88b78b

Please sign in to comment.