working on journal
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<script>
|
||||
import { api, get } from '../../urls.svelte';
|
||||
import { error, yikes } from '../../warn.svelte';
|
||||
import { t } from '../../translations.svelte';
|
||||
let { module, entityId } = $props();
|
||||
|
||||
async function loadJournal(){
|
||||
const url = api(`journal/${module}/${entityId}`);
|
||||
const res = await get(url);
|
||||
if (res.ok) {
|
||||
} else error(res);
|
||||
}
|
||||
|
||||
$effect(loadJournal);
|
||||
</script>
|
||||
|
||||
...
|
||||
@@ -8,6 +8,7 @@
|
||||
import { timetrack } from '../../user.svelte.js';
|
||||
import { now } from '../../time.svelte';
|
||||
|
||||
import Journal from '../journal/related.svelte';
|
||||
import LineEditor from '../../Components/LineEditor.svelte';
|
||||
import MarkdownEditor from '../../Components/MarkdownEditor.svelte';
|
||||
import ParentSelector from './ParentSelector.svelte';
|
||||
@@ -363,9 +364,13 @@
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<h3>{t('Journal')}</h3>
|
||||
<div>
|
||||
<Journal module="task" entityId={id} />
|
||||
</div>
|
||||
<h3>{t('notes')}</h3>
|
||||
<div>
|
||||
<Notes module="task" entity_id={id} />
|
||||
<Notes module="task" entity_id={id} />
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user