Bug fix related to saving entries with mixed changes

This commit is contained in:
Scott Idem
2025-04-01 18:42:32 -04:00
parent d393ed2c7a
commit a41ecb45a9
5 changed files with 119 additions and 24 deletions

View File

@@ -68,10 +68,10 @@ if (browser) {
<!-- These are needed: h-full overflow-auto -->
<div class="ae_journals">
<nav class="submenu flex flex-row items-center justify-center gap-1">
<nav class="submenu flex flex-row flex-wrap items-center justify-center gap-1">
<a
href="/"
class="btn btn-sm variant-ghost-success hover:variant-filled-success"
class="btn btn-sm variant-ghost-surface hover:variant-filled-success"
>
<House />
Home
@@ -82,7 +82,7 @@ if (browser) {
onclick={() => {
// Confirm before clearing
if (!confirm("Are you sure you want to clear all app data and settings? This will reload the page.")) {
if (!confirm("Are you sure you want to clear all *local* app data and settings? This will also reload the page.")) {
return;
}
console.log("Clearing local and session storage, and reloading the page...");
@@ -102,19 +102,19 @@ if (browser) {
window.location.reload(true); // true only works with Firefox
// alert('Local and Session Storage cleared and Indexed DBs deleted. You will probably want to refresh the page.');
}}
class="btn btn-sm variant-ghost-success hover:variant-filled-success"
class="btn btn-sm variant-ghost-surface hover:variant-filled-warning"
title="Clear App Data &amp; Settings - Reload: Clear the browser storage for this site"
>
<!-- <span class="fas fa-eraser mx-1"></span> -->
<span class="fas fa-sync mx-1"></span>
Clear &amp; Reload
<span class="hidden md:inline">Clear &amp; Reload</span>
</button>
</nav>
{#if $ae_loc.administrator_access && 1==2}
<nav
class="submenu flex flex-row justify-center"
class="submenu flex flex-row items-center justify-center"
class:hidden={$ae_loc.iframe}
>