Minor fixes and new warning for outdated "app" version.

This commit is contained in:
Scott Idem
2024-06-26 14:06:38 -04:00
parent 7faa9d0459
commit dd9c48e801
4 changed files with 45 additions and 6 deletions

View File

@@ -229,7 +229,8 @@ function dispatch_something_changed() {
}}
>
<span class="fas fa-sync mx-1"></span>
Reload and
Reload
&amp;
<span class="fas fa-trash mx-1"></span>
Clear Cache
</button>
@@ -237,14 +238,24 @@ function dispatch_something_changed() {
class="btn btn-sm variant-glass-warning"
title="Clear the browser storage for this page"
on:click={() => {
// $ae_loc.
if (!confirm('Are you sure you want to clear the local and session storage?')) {
return false;
}
// Clear the local and session storage
localStorage.clear();
sessionStorage.clear();
alert('Local and Session Storage cleared. You will probably want to refresh the page.');
// Clear Indexed DB as well
indexedDB.deleteDatabase('ae_core_db');
indexedDB.deleteDatabase('ae_events_db');
window.location.reload();
// alert('Local and Session Storage cleared and Indexed DBs deleted. You will probably want to refresh the page.');
}}
>
<span class="fas fa-eraser mx-1"></span>
Clear Storage
Clear Storage &amp; DB
</button>
</div>