From 81e779c8b5e168f45f05c1567775d07879666972 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 11 Feb 2021 09:30:05 +0000 Subject: [PATCH] Add hot reloading to search results --- .../standard-components/src/Search.svelte | 146 ++++++++++-------- 1 file changed, 78 insertions(+), 68 deletions(-) diff --git a/packages/standard-components/src/Search.svelte b/packages/standard-components/src/Search.svelte index 195479cdd9..509205f8f1 100644 --- a/packages/standard-components/src/Search.svelte +++ b/packages/standard-components/src/Search.svelte @@ -1,6 +1,5 @@ -
-
- {#if schema} - {#each columns as field} -
- - {#if schema[field].type === 'options'} - - {:else if schema[field].type === 'datetime'} - - {:else if schema[field].type === 'boolean'} - - {:else if schema[field].type === 'number'} - - {:else if schema[field].type === 'string'} - - {/if} -
- {/each} - {/if} -
- - -
-
- {#if loaded} - {#if rows.length > 0} - {#if $component.children === 0 && $builderStore.inBuilder} -

Add some components to display.

- {:else} - {#each rows as row} - - - + +
+
+ {#if schema} + {#each columns as field} +
+ + {#if schema[field].type === 'options'} + + {:else if schema[field].type === 'datetime'} + + {:else if schema[field].type === 'boolean'} + + {:else if schema[field].type === 'number'} + + {:else if schema[field].type === 'string'} + + {/if} +
{/each} {/if} - {:else if noRowsMessage} -

{noRowsMessage}

- {/if} - {/if} - + {#if loaded} + {#if rows.length > 0} + {#if $component.children === 0 && $builderStore.inBuilder} +

Add some components to display.

+ {:else} + {#each rows as row} + + + + {/each} + {/if} + {:else if noRowsMessage} +

{noRowsMessage}

+ {/if} {/if} +
-
+