-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create listing details header #334
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
public async ValueTask<IActionResult> GetListingById([FromRoute]Guid listingId, | ||
CancellationToken cancellationToken = default) | ||
{ | ||
var result = await listingService.GetByIdAsync(listingId, true, cancellationToken); | ||
var result = await listingRepository | ||
.Get(asNoTracking: true) | ||
.Include(listing => listing.ImagesStorageFile) | ||
.ThenInclude(media => media.StorageFile) | ||
.FirstOrDefaultAsync(listing => listing.Id == listingId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create GetListingByIdQuery
and query handler and move all include logic there
@@ -1,6 +1,6 @@ | |||
<template> | |||
|
|||
<button class="rounded-full theme-border theme-bg-primary primary-transition"> | |||
<button name="PreviousButton" class="rounded-full theme-border theme-bg-primary primary-transition"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be NextButton instead ?
console.log(event.target); | ||
console.log('carousel', carousel); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove console logging
@@ -82,7 +82,7 @@ const loadListingsAsync = async () => { | |||
const response = await airBnbApiClient.listings.getAsync(selectedCategoryId.value, listingsPagination.value); | |||
|
|||
if (response.response) { | |||
listings.value.push(...response.response); | |||
listings.value.push(...response.response) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add semicolon back
close #239