diff --git a/front/src/lib/components/index/search/datawells.svelte b/front/src/lib/components/index/search/datawells.svelte
index 9e7188d..f7c14c7 100644
--- a/front/src/lib/components/index/search/datawells.svelte
+++ b/front/src/lib/components/index/search/datawells.svelte
@@ -24,7 +24,7 @@
let copyText = $state("Copy to clipboard");
- async function copyDataleaksInformation(withSample: boolean) {
+ async function copyDataleaksInformation(withColumns: boolean, withSample: boolean) {
if (!filteredDataleaks || filteredDataleaks.length === 0) {
copyText = "No dataleaks to copy";
return;
@@ -60,6 +60,8 @@
console.error("Failed to fetch sample for", dataleak.Name, err);
fullText += "Sample: [Failed to fetch]\n";
});
+ } else if (withColumns) {
+ fullText += `Columns: ${dataleak.Columns.join(", ")}\n`;
}
fullText += "\n";
}
@@ -150,12 +152,17 @@
>
copyDataleaksInformation(false, false)}>{copyText}
copyDataleaksInformation(true, false)}
+ >{copyText} (w/ columns)
+