Now with a description and basic color scheme. Saving before making some more changes.
This commit is contained in:
@@ -235,6 +235,7 @@ let tmp_entry_obj: key_val = $state({});
|
||||
<button
|
||||
type="button"
|
||||
onclick={() => {
|
||||
// WARNING: This will cause pages to reset if the journal entry list is being filtered by category. This is a bug that should be fixed.
|
||||
if ($journals_loc.filter__category_code == journals_journal_entry_obj.category_code) {
|
||||
$journals_loc.filter__category_code = null;
|
||||
} else {
|
||||
@@ -247,6 +248,7 @@ let tmp_entry_obj: key_val = $state({});
|
||||
console.log('$journals_loc.filter__category_code', $journals_loc.filter__category_code);
|
||||
}
|
||||
}}
|
||||
class:bg-green-100={$journals_loc.filter__category_code == journals_journal_entry_obj.category_code}
|
||||
class="btn btn-sm variant-outline-secondary hover:variant-filled-secondary transition py-1 px-2"
|
||||
title={`Filter by category: ${journals_journal_entry_obj.category_code}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user