Bug fix for Journal Entry view
This commit is contained in:
@@ -1050,7 +1050,7 @@ $effect(() => {
|
||||
<!-- Entry alert status -->
|
||||
<button
|
||||
type="button"
|
||||
class:hidden={$lq__journal_obj.cfg_json?.hide_btn_alert}
|
||||
class:hidden={$lq__journal_obj?.cfg_json?.hide_btn_alert}
|
||||
onclick={() => {
|
||||
tmp_entry_obj.alert = !$lq__journal_entry_obj?.alert;
|
||||
update_journal_entry();
|
||||
@@ -1087,7 +1087,7 @@ $effect(() => {
|
||||
<!-- Only show this private toggle if not private or in edit mode. -->
|
||||
<button
|
||||
type="button"
|
||||
class:hidden={($lq__journal_obj.cfg_json?.hide_btn_private) || (tmp_entry_obj?.private && !$ae_loc.edit_mode)}
|
||||
class:hidden={($lq__journal_obj?.cfg_json?.hide_btn_private) || (tmp_entry_obj?.private && !$ae_loc.edit_mode)}
|
||||
onclick={() => {
|
||||
// Allow for toggle between private (encrypted) and not,
|
||||
// and if private, allow for decryption.
|
||||
@@ -1198,7 +1198,7 @@ $effect(() => {
|
||||
<!-- Entry allowed to be public -->
|
||||
<button
|
||||
type="button"
|
||||
class:hidden={$lq__journal_obj.cfg_json?.hide_btn_public}
|
||||
class:hidden={$lq__journal_obj?.cfg_json?.hide_btn_public}
|
||||
onclick={() => {
|
||||
tmp_entry_obj.public = !$lq__journal_entry_obj?.public;
|
||||
update_journal_entry();
|
||||
@@ -1216,7 +1216,7 @@ $effect(() => {
|
||||
<!-- Entry marked as personal -->
|
||||
<button
|
||||
type="button"
|
||||
class:hidden={$lq__journal_obj.cfg_json?.hide_btn_personal}
|
||||
class:hidden={$lq__journal_obj?.cfg_json?.hide_btn_personal}
|
||||
onclick={() => {
|
||||
tmp_entry_obj.personal = !$lq__journal_entry_obj?.personal;
|
||||
update_journal_entry();
|
||||
@@ -1234,7 +1234,7 @@ $effect(() => {
|
||||
<!-- Entry marked as professional -->
|
||||
<button
|
||||
type="button"
|
||||
class:hidden={$lq__journal_obj.cfg_json?.hide_btn_professional}
|
||||
class:hidden={$lq__journal_obj?.cfg_json?.hide_btn_professional}
|
||||
onclick={() => {
|
||||
tmp_entry_obj.professional = !$lq__journal_entry_obj?.professional;
|
||||
update_journal_entry();
|
||||
@@ -1328,7 +1328,7 @@ $effect(() => {
|
||||
</span>
|
||||
|
||||
<!-- Entry alert status -->
|
||||
<!-- class:hidden={$lq__journal_obj.cfg_json?.hide_btn_alert} -->
|
||||
<!-- class:hidden={$lq__journal_obj?.cfg_json?.hide_btn_alert} -->
|
||||
<button
|
||||
type="button"
|
||||
onclick={() => {
|
||||
@@ -1346,7 +1346,7 @@ $effect(() => {
|
||||
</button>
|
||||
|
||||
<!-- Entry marked as private -->
|
||||
<!-- ($lq__journal_obj.cfg_json?.hide_btn_private) || -->
|
||||
<!-- ($lq__journal_obj?.cfg_json?.hide_btn_private) || -->
|
||||
<button
|
||||
type="button"
|
||||
class:hidden={(tmp_entry_obj?.private && !$ae_loc.edit_mode)}
|
||||
|
||||
Reference in New Issue
Block a user