From c062111403d00d101834fe7e94417928f03da76a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 2 Oct 2020 12:02:11 +0100 Subject: [PATCH] Rename linked rows to related rows and remove deprecated file --- .../backend/DataTable/LinkedRecord.svelte | 124 ------------------ .../components/backend/DataTable/Table.svelte | 2 +- 2 files changed, 1 insertion(+), 125 deletions(-) delete mode 100644 packages/builder/src/components/backend/DataTable/LinkedRecord.svelte diff --git a/packages/builder/src/components/backend/DataTable/LinkedRecord.svelte b/packages/builder/src/components/backend/DataTable/LinkedRecord.svelte deleted file mode 100644 index 0cbf9ab307..0000000000 --- a/packages/builder/src/components/backend/DataTable/LinkedRecord.svelte +++ /dev/null @@ -1,124 +0,0 @@ - - -
- {records.length} - {#if open} -
-
-

{field.name}

- -
- {#each records as record} -
-
- {#each Object.keys(model.schema).filter(key => !FIELDS_TO_HIDE.includes(key)) as key} -
- {model.schema[key].name} -

{record[key]}

-
- {/each} -
-
- {/each} -
- {/if} -
- - diff --git a/packages/builder/src/components/backend/DataTable/Table.svelte b/packages/builder/src/components/backend/DataTable/Table.svelte index a4d08fc6e3..907fc53dd7 100644 --- a/packages/builder/src/components/backend/DataTable/Table.svelte +++ b/packages/builder/src/components/backend/DataTable/Table.svelte @@ -98,7 +98,7 @@
selectRelationship(row, header)}> - {row[header] ? row[header].length : 0} linked row(s) + {row[header] ? row[header].length : 0} related row(s)
{:else if schema[header].type === 'attachment'}