Update sorting and remove logs
This commit is contained in:
parent
9231ce88c6
commit
c573955998
|
@ -1,10 +1,7 @@
|
|||
<script>
|
||||
import { getContext } from "svelte"
|
||||
import { ActionButton } from "@budibase/bbui"
|
||||
import SortButton from "./controls/SortButton.svelte"
|
||||
|
||||
const { rows } = getContext("sheet")
|
||||
</script>
|
||||
|
||||
<SortButton />
|
||||
<ActionButton icon="VisibilityOff" quiet size="M">Hide fields</ActionButton>
|
||||
<SortButton />
|
||||
|
|
|
@ -128,12 +128,8 @@
|
|||
{#if $config.allowEditColumns}
|
||||
<MenuItem icon="Edit" on:click={editColumn}>Edit column</MenuItem>
|
||||
{/if}
|
||||
<MenuItem icon="SortOrderUp" on:click={sortAscending}>
|
||||
Sort ascending
|
||||
</MenuItem>
|
||||
<MenuItem icon="SortOrderDown" on:click={sortDescending}>
|
||||
Sort descending
|
||||
</MenuItem>
|
||||
<MenuItem icon="SortOrderUp" on:click={sortAscending}>Sort A-Z</MenuItem>
|
||||
<MenuItem icon="SortOrderDown" on:click={sortDescending}>Sort Z-A</MenuItem>
|
||||
<MenuItem disabled={!canMoveLeft} icon="ArrowLeft" on:click={moveLeft}>
|
||||
Move left
|
||||
</MenuItem>
|
||||
|
|
|
@ -4,15 +4,14 @@
|
|||
|
||||
const { sort, columns, stickyColumn } = getContext("sheet")
|
||||
const orderOptions = [
|
||||
{ label: "Ascending", value: "ascending" },
|
||||
{ label: "Descending", value: "descending" },
|
||||
{ label: "A-Z", value: "ascending" },
|
||||
{ label: "Z-A", value: "descending" },
|
||||
]
|
||||
|
||||
let open = false
|
||||
let anchor
|
||||
|
||||
$: columnOptions = getColumnOptions($stickyColumn, $columns)
|
||||
$: console.log($sort)
|
||||
|
||||
const getColumnOptions = (stickyColumn, columns) => {
|
||||
let options = []
|
||||
|
|
|
@ -196,7 +196,6 @@ export default class DataFetch {
|
|||
const { query } = get(this.store)
|
||||
|
||||
// Get the actual data
|
||||
console.log("===== FETCH =====")
|
||||
let { rows, info, hasNextPage, cursor, error } = await this.getData()
|
||||
|
||||
// If we don't support searching, do a client search
|
||||
|
|
Loading…
Reference in New Issue