Added new models. Major changes to the table widget. Still has problems with the editing in the table widget.
This commit is contained in:
@@ -43,10 +43,8 @@
|
||||
//TODO: Setup the editor for the given row.
|
||||
}
|
||||
let edited = writable(null);
|
||||
let editedPermissions = null;
|
||||
|
||||
$: rows = Meteor.users.find({});
|
||||
|
||||
let editedPermissions = null;
|
||||
edited.subscribe((value) => {
|
||||
if(value) {
|
||||
editedPermissions = {
|
||||
@@ -82,7 +80,7 @@
|
||||
Loading...
|
||||
{:then allUsers}
|
||||
<GridTable bind:rows={rows} columns="{columns}" rowKey="{getRowKey}" bind:edited="{edited}">
|
||||
{#if editedPermissions}
|
||||
{#if editedPermissions && $edited && $edited.profile}
|
||||
<div class="editorContainer">
|
||||
<label style="grid-column: 1/4; font-weight: 800; border-bottom: 2px solid #888; margin-bottom: 0.5rem">{$edited.profile.name}</label>
|
||||
<label class="checkbox" style="grid-column: 1/4;"><input type="checkbox" bind:checked="{editedPermissions.isAdmin}" style="--form-control-color: black"/> Administrator</label>
|
||||
|
||||
Reference in New Issue
Block a user