diff --git a/prisma/migrations/20231128030637_add_claim_show_name_config_option/migration.sql b/prisma/migrations/20231128030637_add_claim_show_name_config_option/migration.sql
new file mode 100644
index 0000000..a589cae
--- /dev/null
+++ b/prisma/migrations/20231128030637_add_claim_show_name_config_option/migration.sql
@@ -0,0 +1 @@
+INSERT INTO system_config ("key", "value", "groupId") VALUES ('claims.showName', 'true', 'global');
\ No newline at end of file
diff --git a/src/ambient.d.ts b/src/ambient.d.ts
index 74ab114..e140e01 100644
--- a/src/ambient.d.ts
+++ b/src/ambient.d.ts
@@ -54,6 +54,9 @@ type Config = {
method: SuggestionMethod;
};
smtp: SMTPConfig;
+ claims: {
+ showName: boolean;
+ };
};
type Option = {
diff --git a/src/lib/components/admin/SettingsForm/Claims.svelte b/src/lib/components/admin/SettingsForm/Claims.svelte
new file mode 100644
index 0000000..6f0f155
--- /dev/null
+++ b/src/lib/components/admin/SettingsForm/Claims.svelte
@@ -0,0 +1,17 @@
+
+
+
+
Claims
+
+
diff --git a/src/lib/components/admin/SettingsForm/index.svelte b/src/lib/components/admin/SettingsForm/index.svelte
index a8e3b57..0fce2c6 100644
--- a/src/lib/components/admin/SettingsForm/index.svelte
+++ b/src/lib/components/admin/SettingsForm/index.svelte
@@ -5,6 +5,7 @@
import PublicSignup from "./PublicSignup.svelte";
import Suggestions from "./Suggestions.svelte";
import Smtp from "./SMTP.svelte";
+ import Claims from "./Claims.svelte";
export let config: Config;
$: form = $page.form;
@@ -33,7 +34,7 @@
};
}}
>
-
+
@@ -43,8 +44,11 @@
bind:method={config.suggestions.method}
/>
+
+
+
-
+
@@ -30,8 +31,10 @@
Purchased
- {:else}
+ {:else if showName}
Claimed by {item.pledgedBy?.name}
+ {:else}
+
Claimed
{/if}
{:else}