Formatting.
This commit is contained in:
parent
4ccd46e2a1
commit
258b2138c3
|
@ -3,7 +3,7 @@ import {
|
|||
AUTO_COLUMN_DISPLAY_NAMES,
|
||||
AUTO_COLUMN_SUB_TYPES,
|
||||
FIELDS,
|
||||
isAutoColumnUserRelationship
|
||||
isAutoColumnUserRelationship,
|
||||
} from "../constants/backend"
|
||||
|
||||
export function getAutoColumnInformation(enabled = true) {
|
||||
|
|
|
@ -58,5 +58,4 @@
|
|||
<!-- always have the export last -->
|
||||
<ExportButton view={tableView} />
|
||||
{/if}
|
||||
|
||||
</Table>
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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`} />
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue