Skip to content

Commit

Permalink
#74 talk-room component should take a room as prop, not a talk
Browse files Browse the repository at this point in the history
  • Loading branch information
fcamblor committed Nov 8, 2024
1 parent 5214899 commit 2e21faa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
:room-stats="roomsStatsRefByRoomId?.[talk.room.id.value]" :is-upcoming-talk="upcomingRawTalkIds.includes(talk.id.value)"
:talk-notes="userEventTalkNotes.get(talk.id.value)" @talk-clicked="(clickedTalk) => $emit('talk-clicked', clickedTalk)" :is-highlighted="(talk, talkNotes) => talkNotes.isFavorite" :conf-descriptor="confDescriptor">
<template #upper-right="{ talk }">
<talk-room :talk="talk" :conf-descriptor="confDescriptor" />
<talk-room :room="talk.room" :conf-descriptor="confDescriptor" />
</template>
<template #footer-actions="{ talk, talkStats, talkNotes }">
<provide-feedback-talk-button v-if="!talk.isOverflow"
Expand Down
8 changes: 4 additions & 4 deletions mobile/src/components/talk-card/TalkRoom.vue
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<template>
<div class="room" v-if="confDescriptor?.features.roomsDisplayed">
<ion-icon aria-hidden="true" src="/assets/icons/solid/map-marker.svg"></ion-icon>
{{talk.room.title}}
{{room.title}}
</div>
</template>

<script setup lang="ts">
import {PropType} from "vue";
import {VoxxrinConferenceDescriptor} from "@/models/VoxxrinConferenceDescriptor";
import {VoxxrinTalk} from "@/models/VoxxrinTalk";
import {VoxxrinRoom} from "@/models/VoxxrinRoom";
const props = defineProps({
confDescriptor: {
required: true,
type: Object as PropType<VoxxrinConferenceDescriptor|undefined>
},
talk: {
room: {
required: true,
type: Object as PropType<VoxxrinTalk>
type: Object as PropType<VoxxrinRoom>
}
})
</script>
Expand Down

0 comments on commit 2e21faa

Please sign in to comment.