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 @@