Journals is working pretty well. Most basic functions work now.
This commit is contained in:
@@ -6,6 +6,8 @@ let log_lvl: number = 0;
|
||||
import { browser } from '$app/environment';
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
import { BookHeart, FilePlus } from '@lucide/svelte';
|
||||
|
||||
// *** Import other supporting libraries
|
||||
import { Modal } from 'flowbite-svelte';
|
||||
import { liveQuery } from "dexie";
|
||||
@@ -164,35 +166,37 @@ if (browser) {
|
||||
"
|
||||
>
|
||||
|
||||
<!-- <h1>Journals {$lq__journal_obj?.name} - {$lq__journal_entry_obj_li?.length}</h1> -->
|
||||
|
||||
<div class="flex flex-row items-center justify-between w-full">
|
||||
<a href="/journals" class="novi_btn btn btn-secondary btn-sm
|
||||
<a href="/journals"
|
||||
class="btn btn-sm
|
||||
variant-ghost-tertiary
|
||||
hover:variant-filled-tertiary
|
||||
transition
|
||||
">
|
||||
<!-- <span class="fas fa-arrow-left m-1"></span> Back to Journals -->
|
||||
<span class="fas fa-arrow-left m-1"></span>
|
||||
<!-- <span class="fas fa-arrow-left m-1"></span> -->
|
||||
<BookHeart class="mx-1" />
|
||||
View Other Journals
|
||||
</a>
|
||||
|
||||
<!-- Add default journal entry -->
|
||||
<span class="flex flex-row items-center gap-2">
|
||||
<span class="flex flex-row items-center gap-1">
|
||||
<span class="text-sm text-gray-500 hidden md:inline">
|
||||
New Entry:
|
||||
New entry:
|
||||
</span>
|
||||
<button
|
||||
class="btn btn-sm
|
||||
class="
|
||||
btn btn-sm
|
||||
variant-ghost-success
|
||||
hover:variant-filled-success
|
||||
transition"
|
||||
transition
|
||||
"
|
||||
onclick={() => {
|
||||
// $journals_sess.show__modal_new__journal_entry_obj = true;
|
||||
|
||||
let data_kv = {
|
||||
// journal_id_random: $lq__journal_obj?.journal_id,
|
||||
category_code: 'test',
|
||||
category_code: null,
|
||||
};
|
||||
if ($journals_loc.qry__category_code) {
|
||||
data_kv.category_code = $journals_loc.qry__category_code;
|
||||
@@ -217,7 +221,9 @@ if (browser) {
|
||||
});
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-plus m-1"></span> New Journal Entry
|
||||
<FilePlus class="mx-1" />
|
||||
<!-- <span class="fas fa-plus m-1"></span> -->
|
||||
New Journal Entry
|
||||
</button>
|
||||
|
||||
<!-- Give list of categories to base the new entry on -->
|
||||
|
||||
Reference in New Issue
Block a user