Formatting.

This commit is contained in:
mike12345567 2021-02-16 16:38:36 +00:00
parent a744515ee2
commit 2bb6e3e590
6 changed files with 9 additions and 19 deletions

View File

@ -3,7 +3,7 @@ import {
AUTO_COLUMN_DISPLAY_NAMES,
AUTO_COLUMN_SUB_TYPES,
FIELDS,
isAutoColumnUserRelationship
isAutoColumnUserRelationship,
} from "../constants/backend"
export function getAutoColumnInformation(enabled = true) {

View File

@ -58,5 +58,4 @@
<!-- always have the export last -->
<ExportButton view={tableView} />
{/if}
</Table>

View File

@ -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) {

View File

@ -60,9 +60,7 @@
on:mouseleave={() => (hovered = false)}>
<div>
<div class="col-icon">
{#if field.autocolumn}
<i class="auto ri-magic-fill"></i>
{/if}
{#if field.autocolumn}<i class="auto ri-magic-fill" />{/if}
<span class="column-header-name">{displayName}</span>
</div>
<i class={`${SORT_ICON_MAP[sortDirection]} sort-icon icon`} />

View File

@ -14,12 +14,9 @@
<div bind:this={anchor}>
<TextButton text small on:click={hideOrUnhide}>
{#if hideAutocolumns}
<i class="ri-magic-line"></i>
<i class="ri-magic-line" />
Show Auto Columns
{:else}
<i class="ri-magic-fill"></i>
Hide Auto Columns
{/if}
{:else}<i class="ri-magic-fill" /> Hide Auto Columns{/if}
</TextButton>
</div>

View File

@ -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"