Rename create new row to create new user for users table

This commit is contained in:
Andrew Kingston 2020-12-14 13:24:09 +00:00
parent 0b3a4047b3
commit 75b971f6ff
3 changed files with 4 additions and 2 deletions

View File

@ -44,6 +44,7 @@
<CreateColumnButton />
{#if schema && Object.keys(schema).length > 0}
<CreateRowButton
title={isUsersTable ? 'Create New User' : 'Create New Row'}
modalContentComponent={isUsersTable ? CreateEditUser : CreateEditRow} />
<CreateViewButton />
<ExportButton view={tableView} />

View File

@ -3,6 +3,7 @@
import CreateEditRow from "../modals/CreateEditRow.svelte"
export let modalContentComponent = CreateEditRow
export let title = "Create New Row"
let modal
</script>
@ -10,7 +11,7 @@
<div>
<Button text small on:click={modal.show}>
<Icon name="addrow" />
Create New Row
{title}
</Button>
</div>
<Modal bind:this={modal}>

View File

@ -7,7 +7,7 @@
$: {
const allRoutes = $store.routes
const sortedPaths = Object.keys(allRoutes).sort()
const sortedPaths = Object.keys(allRoutes || {}).sort()
const selectedRoleId = $selectedAccessRole
const selectedScreenId = $store.selectedScreenId