some bugfixes
This commit is contained in:
parent
626bc5e9dd
commit
c97d51bc1e
|
@ -9,7 +9,7 @@
|
|||
import CreateEditRow from "./modals/CreateEditRow.svelte"
|
||||
import CreateEditUser from "./modals/CreateEditUser.svelte"
|
||||
import CreateEditColumn from "./modals/CreateEditColumn.svelte"
|
||||
import { TableNames, UNEDITABLE_USER_FIELDS } from "constants"
|
||||
import { TableNames, UNEDITABLE_USER_FIELDS, BUDIBASE_INTERNAL_DB } from "constants"
|
||||
import RoleCell from "./cells/RoleCell.svelte"
|
||||
|
||||
export let schema = {}
|
||||
|
@ -28,6 +28,7 @@
|
|||
let editColumnModal
|
||||
let customRenderers = []
|
||||
|
||||
$: isInternal = tableId === BUDIBASE_INTERNAL_DB
|
||||
$: isUsersTable = tableId === TableNames.USERS
|
||||
$: data && resetSelectedRows()
|
||||
$: editRowComponent = isUsersTable ? CreateEditUser : CreateEditRow
|
||||
|
@ -124,7 +125,7 @@
|
|||
bind:selectedRows
|
||||
allowSelectRows={allowEditing && !isUsersTable}
|
||||
allowEditRows={allowEditing}
|
||||
allowEditColumns={allowEditing}
|
||||
allowEditColumns={allowEditing && isInternal}
|
||||
showAutoColumns={!hideAutocolumns}
|
||||
on:editcolumn={e => editColumn(e.detail)}
|
||||
on:editrow={e => editRow(e.detail)}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
$params.selectedDatasource !== BUDIBASE_INTERNAL_DB
|
||||
|
||||
function selectFirstDatasource({ detail }) {
|
||||
$goto("./datasource")
|
||||
$goto("./table")
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
|||
<div class="tab-content-padding">
|
||||
<DatasourceNavigator />
|
||||
<Modal bind:this={modal}>
|
||||
<CreateDatasourceModal />
|
||||
<CreateDatasourceModal />
|
||||
</Modal>
|
||||
</div>
|
||||
</Tab>
|
||||
|
|
Loading…
Reference in New Issue