Skip to content

Add reload prompt for updating service worker#2574

Open
FireMasterK wants to merge 1 commit intomasterfrom
reload-prompt
Open

Add reload prompt for updating service worker#2574
FireMasterK wants to merge 1 commit intomasterfrom
reload-prompt

Conversation

@FireMasterK
Copy link
Member

Closes #1199

Comment on lines +13 to +20
<div v-if="offlineReady || needRefresh" class="pwa-toast" role="alert">
<div class="message">
<span v-if="offlineReady"> App ready to work offline </span>
<span v-else> New content available, click on reload button to update. </span>
</div>
<button v-if="needRefresh" @click="updateServiceWorker()">Reload</button>
<button @click="close">Close</button>
</div>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copied this from the documentation, CSS needs to be updated for various themes, and these strings need to be localized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant