From 258b2138c3a3092c24454031a4327ce1dd65cb62 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 16 Feb 2021 16:38:36 +0000 Subject: [PATCH] Formatting. --- packages/builder/src/builderStore/utils.js | 2 +- .../src/components/backend/DataTable/DataTable.svelte | 1 - .../src/components/backend/DataTable/Table.svelte | 4 +++- .../backend/DataTable/TableHeader/TableHeader.svelte | 4 +--- .../DataTable/buttons/HideAutocolumnButton.svelte | 7 ++----- .../backend/DataTable/modals/CreateEditColumn.svelte | 10 ++-------- 6 files changed, 9 insertions(+), 19 deletions(-) diff --git a/packages/builder/src/builderStore/utils.js b/packages/builder/src/builderStore/utils.js index a95ba3a601..3ddf6fb667 100644 --- a/packages/builder/src/builderStore/utils.js +++ b/packages/builder/src/builderStore/utils.js @@ -3,7 +3,7 @@ import { AUTO_COLUMN_DISPLAY_NAMES, AUTO_COLUMN_SUB_TYPES, FIELDS, - isAutoColumnUserRelationship + isAutoColumnUserRelationship, } from "../constants/backend" export function getAutoColumnInformation(enabled = true) { diff --git a/packages/builder/src/components/backend/DataTable/DataTable.svelte b/packages/builder/src/components/backend/DataTable/DataTable.svelte index 505bfeb6d9..9197026f4a 100644 --- a/packages/builder/src/components/backend/DataTable/DataTable.svelte +++ b/packages/builder/src/components/backend/DataTable/DataTable.svelte @@ -58,5 +58,4 @@ {/if} - diff --git a/packages/builder/src/components/backend/DataTable/Table.svelte b/packages/builder/src/components/backend/DataTable/Table.svelte index 959f343546..702a1d80dc 100644 --- a/packages/builder/src/components/backend/DataTable/Table.svelte +++ b/packages/builder/src/components/backend/DataTable/Table.svelte @@ -116,7 +116,9 @@ }) } // sort auto-columns to the end if they are present - columnDefs = result.filter(col => !col.autocolumn).concat(result.filter(col => col.autocolumn)) + columnDefs = result + .filter(col => !col.autocolumn) + .concat(result.filter(col => col.autocolumn)) } function selectRelationship(row, fieldName) { diff --git a/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte b/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte index 49d342dd71..2d65010a62 100644 --- a/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte +++ b/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte @@ -60,9 +60,7 @@ on:mouseleave={() => (hovered = false)}>
- {#if field.autocolumn} - - {/if} + {#if field.autocolumn}{/if} {displayName}
diff --git a/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte index 9c114ae436..1af93dd4f8 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte @@ -14,12 +14,9 @@
{#if hideAutocolumns} - + Show Auto Columns - {:else} - - Hide Auto Columns - {/if} + {:else} Hide Auto Columns{/if}
diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 811c005fca..8ae492226f 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -10,14 +10,8 @@ import { cloneDeep } from "lodash/fp" import { backendUiStore } from "builderStore" import { TableNames, UNEDITABLE_USER_FIELDS } from "constants" - import { - FIELDS, - AUTO_COLUMN_SUB_TYPES, - } from "constants/backend" - import { - getAutoColumnInformation, - buildAutoColumn, - } from "builderStore/utils" + import { FIELDS, AUTO_COLUMN_SUB_TYPES } from "constants/backend" + import { getAutoColumnInformation, buildAutoColumn } from "builderStore/utils" import { notifier } from "builderStore/store/notifications" import ValuesList from "components/common/ValuesList.svelte" import DatePicker from "components/common/DatePicker.svelte"