1
0
Fork 0
mirror of synced 2024-07-31 19:01:57 +12:00

frontend bug fixes, remove bindable prop, add not equals filter

This commit is contained in:
Martin McKeaveney 2020-10-14 21:43:36 +01:00
parent 535c9febd5
commit 988789f1d4
7 changed files with 21 additions and 17 deletions

View file

@ -37,8 +37,6 @@
<Table title={decodeURI(name)} schema={view.schema} {data}> <Table title={decodeURI(name)} schema={view.schema} {data}>
<FilterButton {view} /> <FilterButton {view} />
<CalculateButton {view} /> <CalculateButton {view} />
{#if view.calculation}
<GroupByButton {view} /> <GroupByButton {view} />
{/if}
<ExportButton {view} /> <ExportButton {view} />
</Table> </Table>

View file

@ -65,8 +65,8 @@
<div class="actions"> <div class="actions">
<Input label="Name" thin bind:value={field.name} /> <Input label="Name" thin bind:value={field.name} />
{#if !originalName}
<Select <Select
disabled={originalName}
secondary secondary
thin thin
label="Type" label="Type"
@ -76,7 +76,6 @@
<option value={field.type}>{field.name}</option> <option value={field.type}>{field.name}</option>
{/each} {/each}
</Select> </Select>
{/if}
{#if field.type !== 'link'} {#if field.type !== 'link'}
<Toggle <Toggle

View file

@ -9,6 +9,10 @@
name: "Equals", name: "Equals",
key: "EQUALS", key: "EQUALS",
}, },
{
name: "Not Equals",
key: "NOT_EQUALS",
},
{ {
name: "Less Than", name: "Less Than",
key: "LT", key: "LT",

View file

@ -13,6 +13,7 @@
import { onMount } from "svelte" import { onMount } from "svelte"
export let label = "" export let label = ""
export let bindable = true
export let componentInstance = {} export let componentInstance = {}
export let control = null export let control = null
export let key = "" export let key = ""
@ -93,7 +94,7 @@
{...props} {...props}
name={key} /> name={key} />
</div> </div>
{#if control === Input && !key.startsWith('_')} {#if bindable && control === Input && !key.startsWith('_')}
<button data-cy={`${key}-binding-button`} on:click={dropdown.show}> <button data-cy={`${key}-binding-button`} on:click={dropdown.show}>
<Icon name="edit" /> <Icon name="edit" />
</button> </button>

View file

@ -88,6 +88,7 @@
{#if screenOrPageInstance} {#if screenOrPageInstance}
{#each screenOrPageDefinition as def} {#each screenOrPageDefinition as def}
<PropertyControl <PropertyControl
bindable={false}
control={def.control} control={def.control}
label={def.label} label={def.label}
key={def.key} key={def.key}

View file

@ -1,5 +1,6 @@
const TOKEN_MAP = { const TOKEN_MAP = {
EQUALS: "===", EQUALS: "===",
NOT_EQUALS: "!==",
LT: "<", LT: "<",
LTE: "<=", LTE: "<=",
MT: ">", MT: ">",

View file

@ -40,7 +40,7 @@ module.exports = async (ctx, next) => {
ctx.user = { ctx.user = {
// if appId can't be determined from path param or subdomain // if appId can't be determined from path param or subdomain
appId: appId, appId,
} }
await next() await next()
return return