Skip to content

Commit dc7fdaa

Browse files
committed
Printer market can't purchase message precedence change
1 parent e5d738b commit dc7fdaa

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/routes/dashboard/market/printer/Printers.svelte

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@
187187
></div>
188188

189189
<div
190-
class="absolute flex h-full w-full flex-col justify-center z-3 cursor-not-allowed bg-primary-950/60"
190+
class="absolute z-3 flex h-full w-full cursor-not-allowed flex-col justify-center bg-primary-950/60"
191191
class:hidden={data.user.printerFulfilment === 'none'}
192192
>
193193
<div class="flex flex-row justify-center">
194194
<div
195-
class="z-3 flex max-w-120 min-w-80 flex-col rounded-lg bg-primary-950 p-3 text-center outline-3 outline-primary-800 select-auto cursor-default"
195+
class="z-3 flex max-w-120 min-w-80 cursor-default flex-col rounded-lg bg-primary-950 p-3 text-center outline-3 outline-primary-800 select-auto"
196196
>
197197
<h2 class="text-xl font-semibold">
198198
{selectedPrinter?.longName}
@@ -202,9 +202,7 @@
202202
</p>
203203
<div class="mt-0.5 flex flex-row justify-center gap-1.5 align-middle text-primary-500">
204204
<Lock size={22} />
205-
<p class="font-semibold">
206-
In fulfilment queue, printer market locked
207-
</p>
205+
<p class="font-semibold">In fulfilment queue, printer market locked</p>
208206
</div>
209207
</div>
210208
</div>
@@ -256,6 +254,10 @@
256254
class="underline transition-colors hover:text-amber-500">Hack Club Auth</a
257255
>
258256
</p>
257+
{:else if !selectedPrinterPurchaseable && !selectedPrinterAlreadyPurchased && !canAffordPrinter}
258+
<p class="mt-0.5 text-sm font-medium text-primary-600">
259+
Haven't bought required upgrades
260+
</p>
259261
{:else}
260262
<p class="mt-0.5 text-sm font-medium text-primary-600">Can't afford</p>
261263
{/if}
@@ -294,6 +296,7 @@
294296
</div>
295297
</div>
296298
</div>
299+
<!-- svelte-ignore a11y_no_static_element_interactions -->
297300
<div
298301
bind:this={canvas}
299302
{onpointerdown}
@@ -305,7 +308,7 @@
305308
<img src={printerMap} alt="printer map" draggable="false" />
306309
<div class="absolute top-0 left-0 z-1 h-full w-full">
307310
<div class="relative h-full w-full">
308-
{#each printersSingleList as printer}
311+
{#each printersSingleList as printer (printer.path)}
309312
{@const purchaseable = purchaseablePrinters.some(
310313
(arr) =>
311314
arr.length === printer.path.length &&

0 commit comments

Comments
 (0)