From 7f9caa510070ea1fbb8ca6a037093e45a3d4fd40 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 7 Mar 2026 18:45:43 +0100 Subject: [PATCH] chore(migration): added hiding migration info bar after clicking accept button --- src/App.vue | 6 +++--- src/components/app/MigrationInfo.vue | 30 ++++++++++++++++++++++++---- src/locales/en.json | 3 ++- src/locales/pl.json | 3 ++- 4 files changed, 33 insertions(+), 9 deletions(-) diff --git a/src/App.vue b/src/App.vue index 138a586..32d350e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -25,7 +25,7 @@ registerSW({ onMounted(() => { loadStockDataFromStorage(); - showMigrationInfo(); + handleMigrationInfo(); store.setupAPIData(); }); @@ -37,9 +37,9 @@ watchEffect(() => { } }); -function showMigrationInfo() { +function handleMigrationInfo() { // Show only on old domain - if (location.hostname !== 'pojazdownik-td2.web.app' && location.hostname !== 'localhost') return; + if (location.hostname !== 'pojazdownik-td2.web.app') return; const showInfo = localStorage.getItem('showMigrationInfo'); diff --git a/src/components/app/MigrationInfo.vue b/src/components/app/MigrationInfo.vue index a5c6b27..66805ea 100644 --- a/src/components/app/MigrationInfo.vue +++ b/src/components/app/MigrationInfo.vue @@ -1,12 +1,26 @@ - +