diff --git a/src/components/Chatters.tsx b/src/components/Chatters.tsx index eb809e5..008ba33 100644 --- a/src/components/Chatters.tsx +++ b/src/components/Chatters.tsx @@ -35,10 +35,18 @@ const ExportDialog: Component<{
+ -
 {
-		setSelected([
-			...subs.slice(0, 100).map((sub) => sub.user_id),
-			...scrubs.slice(0, 100 - subs.length).map((scrub) => scrub.user_id),
-		]);
-	};
-
 	const [dialogRef, setDialogRef] = createSignal();
 
 	const getJson = () =>
@@ -106,11 +100,23 @@ const ChatttersView: Component<{
 			4,
 		);
 
+	const [amountSelect, setAmountSelect] = createSignal(100);
+	const amountClick = () => {
+		const amount = amountSelect();
+		setSelected([
+			...subs.slice(0, amount).map((sub) => sub.user_id),
+			...scrubs.slice(0, amount - subs.length).map((scrub) => scrub.user_id),
+		]);
+	};
+
 	return (
 		<>
 			
 			
+ - - + +
+
+ Select first  + { + const number = Number.parseInt( + e.currentTarget.value.toLocaleLowerCase(), + ); + if (!Number.isNaN(number)) { + setAmountSelect(number); + } + }} + /> + +
setSearch(e.currentTarget.value.toLocaleLowerCase())} />