Skip to content
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

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Open

Create listing details header #334

wants to merge 10 commits into from

Conversation

rashidovasadbek
Copy link
Contributor

@rashidovasadbek rashidovasadbek commented Feb 21, 2024

close #239

@rashidovasadbek rashidovasadbek changed the title Create listing details header #239 Create listing details header Feb 21, 2024
Copy link
Collaborator

@Abdurasulovich Abdurasulovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment on lines +35 to +42
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);
Copy link
Collaborator

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">
Copy link
Collaborator

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 ?

Comment on lines +99 to +100
console.log(event.target);
console.log('carousel', carousel);
Copy link
Collaborator

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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add semicolon back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants