Skip to content

Commit a6fb678

Browse files
committed
Fix status field not showing "sequential" in the table
Issue 325
1 parent 0dcd629 commit a6fb678

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/components/modals/add.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ export function AddMagnet(props: AddCommonModalProps) {
396396
: "Torrent already exists"}
397397
data-autofocus
398398
autoComplete="off" autoCorrect="off" autoCapitalize="off" spellCheck="false"
399+
autosize
399400
minRows={6} />
400401
<AddCommon {...common.props} disabled={existingTorrent !== undefined} />
401402
<Divider my="sm" />

src/components/tables/torrenttable.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ const AllFields: readonly TableField[] = [
105105
},
106106
{ name: "rateDownload", label: "Down speed", component: ByteRateField },
107107
{ name: "rateUpload", label: "Up speed", component: ByteRateField },
108-
{ name: "status", label: "Status", component: StatusField },
108+
{
109+
name: "status",
110+
label: "Status",
111+
component: StatusField,
112+
requiredFields: ["status", "sequential_download"],
113+
},
109114
{ name: "addedDate", label: "Added on", component: DateField },
110115
{
111116
name: "peersSendingToUs",

src/types/css-modules.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
declare module "*.css";
12
declare module "*.module.css" {
23
const classes: { readonly [key: string]: string };
34
export default classes;

0 commit comments

Comments
 (0)