From 9b4da937536639e772347365fcaef3a25c7fc194 Mon Sep 17 00:00:00 2001 From: Wasp Date: Sun, 24 Dec 2023 18:36:13 +0000 Subject: [PATCH] minor changes for funzies --- .../Auctions/CreateAuctionSidebar.svelte | 51 +++++++++++-------- .../auctioneer/Auctions/CurrencyList.svelte | 4 +- src/constants.js | 2 +- 3 files changed, 32 insertions(+), 25 deletions(-) diff --git a/src/applications/auctioneer/Auctions/CreateAuctionSidebar.svelte b/src/applications/auctioneer/Auctions/CreateAuctionSidebar.svelte index f08ef4e..13da6b9 100644 --- a/src/applications/auctioneer/Auctions/CreateAuctionSidebar.svelte +++ b/src/applications/auctioneer/Auctions/CreateAuctionSidebar.svelte @@ -12,13 +12,18 @@ const store = getContext("store"); const flagStore = store.auctioneerFlags; + const flags = get(flagStore); const itemDocStore = store.auctionItemStore; const actorDoc = store.actorDoc; const newAuctionStore = store.newAuctionStore; - let showPrice = "bids"; + $: { + if($flagStore.showOnlyPrimaryCurrency){ + showPrice = "all"; + } + } const useSecondaryCurrencies = writable(false); const currencies = getCurrencies(store.auctioneer); const hasSecondaryCurrencies = currencies.some(currency => currency.secondary); @@ -166,15 +171,18 @@
Item cannot be stacked, only 1 auction can be created at a time.
{/if} - {#if $flagStore.allowSecondaryCurrencies && hasSecondaryCurrencies} -
- Use Other Currencies -
- {/if} +
+ Duration: + +
{#if $flagStore.auctionDeposit}
+ data-tooltip="The amount you must pay in order to create this auction. If the auction succeeds, you get this back. If you cancel the auction, or it fails to sell, you do not get this back."> Auction deposit: {depositCurrenciesString || "None"} @@ -210,11 +218,17 @@ Hidden Bids
{/if} + {#if $flagStore.allowSecondaryCurrencies && hasSecondaryCurrencies} +
+ Use Other Currencies +
+ {/if}
- - {#if $flagStore.enableMinimumBid} - {/if} {#if $flagStore.enableReserveLimit} - {/if} @@ -265,15 +281,6 @@
{/if} {/if} -
- Duration: - -
diff --git a/src/applications/auctioneer/Auctions/CurrencyList.svelte b/src/applications/auctioneer/Auctions/CurrencyList.svelte index cd704fb..8d4e401 100644 --- a/src/applications/auctioneer/Auctions/CurrencyList.svelte +++ b/src/applications/auctioneer/Auctions/CurrencyList.svelte @@ -29,12 +29,12 @@
{ showPrice = name; }}> {label} - {#if caret} + {#if caret && showPrice !== "all"} {/if} - {#if showPrice === name} + {#if showPrice === name || showPrice === "all"}
{#if !$useSecondaryCurrencies}
diff --git a/src/constants.js b/src/constants.js index d747c37..e7b5796 100644 --- a/src/constants.js +++ b/src/constants.js @@ -48,7 +48,7 @@ const CONSTANTS = { ACTOR_DEFAULTS: { auctioneerClosed: false, showActorName: true, - auctionFee: "@finalAuctionCost * 0.05", + auctionFee: 5, auctionDeposit: "@itemCost * 0.05", showOnlyPrimaryCurrency: false, allowSecondaryCurrencies: true,