mirror of
https://github.com/immich-app/immich.git
synced 2025-01-02 12:48:35 +02:00
Fixex announcement web not close after acknowledgement
This commit is contained in:
parent
53cd9fd8bf
commit
587b77e70b
@ -7,10 +7,12 @@
|
|||||||
export let localVersion: string;
|
export let localVersion: string;
|
||||||
export let remoteVersion: string;
|
export let remoteVersion: string;
|
||||||
|
|
||||||
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
const acknowledgeClickHandler = () => {
|
const acknowledgeClickHandler = () => {
|
||||||
localStorage.setItem('appVersion', remoteVersion);
|
localStorage.setItem('appVersion', remoteVersion);
|
||||||
|
|
||||||
goto($page.url.pathname);
|
dispatch('close');
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
if (browser) {
|
if (browser) {
|
||||||
const { shouldShowAnnouncement, localVersion, remoteVersion } = await checkAppVersion();
|
const { shouldShowAnnouncement, localVersion, remoteVersion } = await checkAppVersion();
|
||||||
|
|
||||||
|
console.log('Recheck');
|
||||||
return { props: { url, shouldShowAnnouncement, localVersion, remoteVersion } };
|
return { props: { url, shouldShowAnnouncement, localVersion, remoteVersion } };
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
@ -38,7 +39,7 @@
|
|||||||
<DownloadPanel />
|
<DownloadPanel />
|
||||||
|
|
||||||
{#if shouldShowAnnouncement}
|
{#if shouldShowAnnouncement}
|
||||||
<AnnouncementBox {localVersion} {remoteVersion} />
|
<AnnouncementBox {localVersion} {remoteVersion} on:close={() => (shouldShowAnnouncement = false)} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/key}
|
{/key}
|
||||||
|
Loading…
Reference in New Issue
Block a user