Added new models. Major changes to the table widget. Still has problems with the editing in the table widget.

This commit is contained in:
2022-06-13 07:42:26 -07:00
parent 11fbfcfac0
commit 69ca0d5eb6
15 changed files with 417 additions and 16578 deletions

View File

@@ -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>