improving note lsit
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -33,6 +33,7 @@
|
|||||||
authors = {...authors, ...data.authors};
|
authors = {...authors, ...data.authors};
|
||||||
loader.offset += loader.limit;
|
loader.offset += loader.limit;
|
||||||
loader.active = false;
|
loader.active = false;
|
||||||
|
console.log({authors});
|
||||||
yikes();
|
yikes();
|
||||||
if (Object.keys(data.notes).length) onscroll(null); // when notes were received, check whether they fill up the page
|
if (Object.keys(data.notes).length) onscroll(null); // when notes were received, check whether they fill up the page
|
||||||
|
|
||||||
@@ -78,4 +79,4 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<svelte:window {onscroll} />
|
<svelte:window {onscroll} />
|
||||||
<List {notes} />
|
<List {notes} {authors} />
|
||||||
|
|||||||
@@ -64,6 +64,7 @@
|
|||||||
<legend class="entity" onclick={() => goToEntity(note)}>{title(note)}</legend>
|
<legend class="entity" onclick={() => goToEntity(note)}>{title(note)}</legend>
|
||||||
{/if}
|
{/if}
|
||||||
<legend class="time">
|
<legend class="time">
|
||||||
|
{#if !module} {authors[note.user_id].name} – {/if}
|
||||||
{note.timestamp.replace('T',' ')}
|
{note.timestamp.replace('T',' ')}
|
||||||
{#if user.id == note.user_id}
|
{#if user.id == note.user_id}
|
||||||
<button class="symbol" onclick={() => drop(note.id)}></button>
|
<button class="symbol" onclick={() => drop(note.id)}></button>
|
||||||
|
|||||||
Reference in New Issue
Block a user