Skip to content

Commit

Permalink
fixup! feat: implement resources and rooms overview
Browse files Browse the repository at this point in the history
  • Loading branch information
st3iny committed Jul 8, 2024
1 parent 17655ef commit 783175c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
14 changes: 5 additions & 9 deletions src/components/Editor/FreeBusy/RoomAvailabilityList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<NcDialog :show="showDialog"
<NcDialog :open="showDialog"
:name="t('calendar', 'Availability of rooms')"
size="large"
:name="t('calendar', 'Availability of rooms')">
@update:open="(e) => $emit('update:show-dialog', e)">
<div class="modal__content__header">
<h2>{{ t('calendar', 'Find a room') }}</h2>
<table>
Expand Down Expand Up @@ -38,13 +39,12 @@
</table>
<div>

Check warning on line 40 in src/components/Editor/FreeBusy/RoomAvailabilityList.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Editor/FreeBusy/RoomAvailabilityList.vue#L39-L40

Added lines #L39 - L40 were not covered by tests
<RoomAvailabilityModal v-if="showRoomAvailabilityModal"
:show="showRoomAvailabilityModal"
:show.sync="showRoomAvailabilityModal"
:start-date="calendarObjectInstance.startDate"
:end-date="calendarObjectInstance.endDate"
:rooms="selectedRooms"
:calendar-object-instance="calendarObjectInstance"
:organizer="currentUserPrincipalAsAttendee"
@close="closeFreeBusy" />
:organizer="currentUserPrincipalAsAttendee" />
</div>

Check warning on line 48 in src/components/Editor/FreeBusy/RoomAvailabilityList.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Editor/FreeBusy/RoomAvailabilityList.vue#L47-L48

Added lines #L47 - L48 were not covered by tests
</div>
</NcDialog>
Expand Down Expand Up @@ -110,10 +110,6 @@ export default {
this.selectedRooms = [room]
this.showRoomAvailabilityModal = true
},
closeFreeBusy() {
this.showRoomAvailabilityModal = false
this.$emit('update:showDialog', false)
},
},
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/FreeBusy/RoomAvailabilityModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<NcModal size="large"
:show="show"
:name="t('calendar', 'Check room availability')"
@close="$emit('close')">
@update:show="(e) => $emit('update:show', e)">
<div class="modal__content">
<div class="modal__content__header">
<h2>{{ $t('calendar', 'Find a time') }}</h2>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Editor/Resources/ResourceListSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
</NcButton>

<RoomAvailabilityList v-if="showRoomAvailabilityModal"
:show-dialog.sync="showRoomAvailabilityModal"
:calendar-object-instance="calendarObjectInstance"
:start-date="calendarObjectInstance.startDate"
:end-date="calendarObjectInstance.endDate"
:show-dialog="showRoomAvailabilityModal" />
:end-date="calendarObjectInstance.endDate" />
<NcSelect class="resource-search__multiselect"
:options="matches"
:searchable="true"
Expand Down

0 comments on commit 783175c

Please sign in to comment.