Skip to content

Commit

Permalink
WIP customise product with CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
ithiame committed Dec 19, 2024
1 parent 4f8b66b commit 2d37c7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<a href="{data.adminPrefix}/countdown/new" class="underline block">Add countdown</a>

<h1 class="text-3xl">List of Countdown</h1>
<h1 class="text-3xl">List of specification</h1>

<ul>
{#each data.countdowns as countdown}
Expand Down
3 changes: 1 addition & 2 deletions src/routes/(app)/pos/touch/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import { collections } from '$lib/server/database';
import { runtimeConfig } from '$lib/server/runtime-config';
import type { Product } from '$lib/types/Product';
import type { Tag } from '$lib/types/Tag';
import { POS_ROLE_ID } from '$lib/types/User';

export const load = async ({ locals }) => {
const query =
locals.user?.roleId === POS_ROLE_ID
locals.user?.roleId === locals.user?.roleId
? { 'actionSettings.retail.visible': true }
: { 'actionSettings.eShop.visible': true };

Expand Down
4 changes: 1 addition & 3 deletions src/routes/(app)/pos/touch/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,7 @@
</div>
</div>
<div class="grid grid-cols-2 gap-4 mt-2">
<a class="touchScreen-action-cta text-3xl p-4 text-center" href="/checkout?display=headless"
>PAYER</a
>
<div class="touchScreen-action-cta text-3xl p-4 text-center">PAYER</div>
<form
method="post"
class="grid grid-cols-2 gap-4"
Expand Down

0 comments on commit 2d37c7f

Please sign in to comment.