Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
class="w-full items-center justify-center"
icon="i-lucide-message-circle"
:label="$t('common.show-more')"
@click="shownMessages += 10"
@click="handleClickShowMore()"
/>
</div>

Expand Down Expand Up @@ -66,6 +66,7 @@ definePageMeta({
})

const { params } = useRoute('ticket-ticketId')
const { vibrate } = useFeedback()

const ticketStore = useTicketStore()
const ticket = computed(() => ticketStore.tickets.find((e) => e.id === params.ticketId))
Expand All @@ -76,4 +77,9 @@ const messages = computed(() => ticket.value?.messages.slice(0, shownMessages.va
const isShowMore = computed<boolean>(() => messages.value?.length && ticket.value?.messages.length ? messages.value.length < ticket.value.messages.length : false)

// const isDrawerOpened = ref(false)

function handleClickShowMore() {
vibrate()
shownMessages.value += 10
}
</script>
2 changes: 1 addition & 1 deletion apps/web-app/server/middleware/01.auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default defineEventHandler(async (event) => {
}

// Skip routes without auth
if (!event.path.startsWith('/api') || routesWithoutAuth.includes(event.path)) {
if (!event.path.startsWith('/api') || event.path.startsWith('/api/avatar') || routesWithoutAuth.includes(event.path)) {
return
}

Expand Down