1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

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