diff --git a/desks-web-app/src/components/booking-components/AvailabilityCard.vue b/desks-web-app/src/components/booking-components/AvailabilityCard.vue index 6262f2c..f77adec 100644 --- a/desks-web-app/src/components/booking-components/AvailabilityCard.vue +++ b/desks-web-app/src/components/booking-components/AvailabilityCard.vue @@ -106,7 +106,7 @@ export default defineComponent({ return "success" - } + }, } }); diff --git a/desks-web-app/src/components/booking-components/BookingsCards.vue b/desks-web-app/src/components/booking-components/BookingsCards.vue new file mode 100644 index 0000000..b983ab2 --- /dev/null +++ b/desks-web-app/src/components/booking-components/BookingsCards.vue @@ -0,0 +1,97 @@ + + + + + + + mdi-dots-vertical + + + + + Today + + + {{ dateConverter(item.start).format("DD.MM.YYYY") }} + + + {{ $format.date(item.start) }} + + + {{ item.room.name }} + + + + + + {{ $format.time(item.start) }} - {{ $format.time(item.end) }} + + + + + + + + + + diff --git a/desks-web-app/src/components/booking-components/BookingsTable.vue b/desks-web-app/src/components/booking-components/BookingsTable.vue deleted file mode 100644 index ecc3446..0000000 --- a/desks-web-app/src/components/booking-components/BookingsTable.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - Room - - - Date - - - Start - - - End - - - - - - - - {{ item.room.name }} - {{ $format.date(item.start) }} - {{ $format.time(item.start) }} - {{ $format.time(item.end) }} - - leaveEarly(item)" variant="flat">Leave now - - mdi-dots-vertical - - - - - - - - - - - diff --git a/desks-web-app/src/components/views/BookingsView.vue b/desks-web-app/src/components/views/BookingsView.vue index fb09105..beec7c8 100644 --- a/desks-web-app/src/components/views/BookingsView.vue +++ b/desks-web-app/src/components/views/BookingsView.vue @@ -41,19 +41,17 @@ - You have no upcoming desk bookings. - openEditeBookingDialog(booking)" @openBooking="(booking) => openShowBookingDialog(booking)" - > - + > @@ -68,7 +66,7 @@ import {defineComponent} from "vue"; import {mapActions, mapGetters, mapState} from "vuex"; -import BookingsTable from "@/components/booking-components/BookingsTable.vue"; +import BookingsCards from "@/components/booking-components/BookingsCards.vue"; import Booking from "@/models/Booking"; import BookingDetails from "@/components/booking-components/BookingDetails.vue"; import BookingFormDialogue from "@/components/booking-components/BookingFormDialogue.vue"; @@ -88,7 +86,7 @@ interface bookingViewData { export default defineComponent({ name: "BookingsView", - components: {DeskAvailabilty, BookingFormDialogue, BookingDetails, BookingsTable, Loading}, + components: {DeskAvailabilty, BookingFormDialogue, BookingDetails, BookingsCards, Loading}, data: (): bookingViewData => ({ showBookingFormDialog: false, bookingToEdit: null,