release: v1.7.4 patch — skip price reload on tab open
This commit is contained in:
@@ -10012,6 +10012,11 @@ async function renderShoppingItems() {
|
|||||||
if (fetchBtn2) fetchBtn2.disabled = false;
|
if (fetchBtn2) fetchBtn2.disabled = false;
|
||||||
if (refreshBtn2) { refreshBtn2.disabled = false; refreshBtn2.textContent = '🔄'; }
|
if (refreshBtn2) { refreshBtn2.disabled = false; refreshBtn2.textContent = '🔄'; }
|
||||||
_updateDashboardPriceTotal();
|
_updateDashboardPriceTotal();
|
||||||
|
} else if (smartShoppingItems.length === 0 && _smartShoppingLastFetch === 0) {
|
||||||
|
// Smart data hasn't loaded yet — don't trigger fetch now.
|
||||||
|
// The second renderShoppingItems() call (inside loadSmartShopping().then()) will handle prices
|
||||||
|
// once we have real qty/unit data. Just apply whatever is cached silently.
|
||||||
|
_applyPriceBadgesFromCache();
|
||||||
} else {
|
} else {
|
||||||
// Immediately apply any prices already fetched this session — no flicker for cached items
|
// Immediately apply any prices already fetched this session — no flicker for cached items
|
||||||
_applyPriceBadgesFromCache();
|
_applyPriceBadgesFromCache();
|
||||||
|
|||||||
+2
-2
@@ -67,7 +67,7 @@
|
|||||||
<!-- Title — left-aligned; grows to fill space -->
|
<!-- Title — left-aligned; grows to fill space -->
|
||||||
<div class="header-title-wrap">
|
<div class="header-title-wrap">
|
||||||
<h1 class="header-title" onclick="showPage('dashboard')">
|
<h1 class="header-title" onclick="showPage('dashboard')">
|
||||||
<img src="assets/img/logo/logo_icon.png" alt="" class="header-logo-icon" aria-hidden="true" /><span data-i18n="nav.title">EverShelf</span><span class="header-version">v1.7.3</span>
|
<img src="assets/img/logo/logo_icon.png" alt="" class="header-logo-icon" aria-hidden="true" /><span data-i18n="nav.title">EverShelf</span><span class="header-version">v1.7.4</span>
|
||||||
</h1>
|
</h1>
|
||||||
<!-- Update badge — shown alongside title, never replaces it -->
|
<!-- Update badge — shown alongside title, never replaces it -->
|
||||||
<span class="header-update-badge" id="header-update-badge" style="display:none"></span>
|
<span class="header-update-badge" id="header-update-badge" style="display:none"></span>
|
||||||
@@ -1461,6 +1461,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="assets/js/app.js?v=20260507f"></script>
|
<script src="assets/js/app.js?v=20260507g"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user