From 9edc1a8f58660db9ca219d50b1a53b1cffa68588 Mon Sep 17 00:00:00 2001 From: Artemiy Solopov Date: Fri, 18 Sep 2026 19:55:23 +0300 Subject: [PATCH] Auction show loading --- src/components/auctions/Index.vue | 6 ++-- src/components/auctions/ShowDialog.vue | 29 ++++++++++++++----- .../auctions/current_auction_store.js | 8 ++--- .../scripts/current_auction_store_history.js | 4 +-- 4 files changed, 31 insertions(+), 16 deletions(-) diff --git a/src/components/auctions/Index.vue b/src/components/auctions/Index.vue index 5af5149..ee45063 100644 --- a/src/components/auctions/Index.vue +++ b/src/components/auctions/Index.vue @@ -3,7 +3,7 @@ import {ref, computed, onMounted, defineProps} from "vue"; import {request} from "../lib/gateway.js"; import {loadToken} from "../scripts/load_token.js"; -import {setAuction} from "./current_auction_store.js"; +import {setAuctionId} from "./current_auction_store.js"; const pending = Symbol('pending') @@ -40,8 +40,8 @@ const auctionPath = (id) => path + `?id=${id}` function navigateToAuction(auction) { let {id} = auction let path = auctionPath(id) - history.pushState({...auction}, null, path) - setAuction(auction) + history.pushState(id, null, path) + setAuctionId(id) } diff --git a/src/components/auctions/ShowDialog.vue b/src/components/auctions/ShowDialog.vue index d577e7a..dd5fb5c 100644 --- a/src/components/auctions/ShowDialog.vue +++ b/src/components/auctions/ShowDialog.vue @@ -1,22 +1,37 @@