Skip to content

Commit 5720908

Browse files
committed
remove second create option
1 parent 8fcfd11 commit 5720908

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ Just include the table as seen in the example below.
5252
5353
<body>
5454
<hr>
55-
<crud-table></crud-table>
5655
<table-pager></table-pager>
56+
<crud-table></crud-table>
5757
<hr>
5858
</body>
5959
<script src='https://ivosdc.github.io/svelte-generic-crud-table/test-data.js'></script>
@@ -64,8 +64,8 @@ Just include the table as seen in the example below.
6464
```
6565

6666
```html
67-
<crud-table></crud-table>
6867
<table-pager></table-pager>
68+
<crud-table></crud-table>
6969
```
7070

7171
### Svelte-Component - implementation example:

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte-generic-crud-table",
3-
"version": "1.5.23",
3+
"version": "1.5.24",
44
"description": "<crud-table> renders object-arrays with options-panel and inline edit per row. Dispatches events for ongoing data handling. As self-containing webcomponent or for Svelte in 60KB",
55
"main": "dist/build/crud-table.js",
66
"module": "dist/build/crud-table.mjs",

src/SvelteGenericCrudTable.svelte

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,6 @@
139139
</script>
140140

141141
<main>
142-
<!-- /* istanbul ignore next line */ -->
143-
{#if table_data.length === 0}
144-
{#if options.includes(CREATE)}
145-
<div class="blue" on:click={handleCreate}
146-
title="Create">
147-
{@html iconcreate}
148-
</div>
149-
{/if}
150-
{/if}
151142
{#if (table_data !== undefined)}
152143
<!-- /* istanbul ignore next line */ -->
153144
{#if Array.isArray(table_data)}

0 commit comments

Comments
 (0)