diff --git a/src/App.vue b/src/App.vue index 263bd214e..e48e54e69 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,7 +28,14 @@ export default { } }, computed: { - ...mapState(['activeNetwork', 'brokerReady', 'keyUpdatedAt', 'termsAcceptedAt', 'unlockedAt']), + ...mapState([ + 'activeNetwork', + 'brokerReady', + 'keyUpdatedAt', + 'termsAcceptedAt', + 'unlockedAt', + 'whatsNewModalVersion' + ]), ...mapState({ locale: (state) => state.app?.locale }), @@ -41,7 +48,7 @@ export default { }, methods: { ...mapActions(['initializeAnalytics']), - ...mapActions('app', ['setLocalePreference', 'getBrowserLocale']) + ...mapActions('app', ['setLocalePreference', 'getBrowserLocale', 'setWhatsNewModalContent']) }, async created() { await this.initializeAnalytics() @@ -56,6 +63,13 @@ export default { // store the locale in state await this.setLocalePreference({ locale: this.currentLocale }) } + if ( + this.whatsNewModalVersion !== this.appVersion || + process.env.VUE_APP_SHOW_WHATS_NEW_ALWAYS + ) { + const content = await import(`@/locales/${this.currentLocale}/whats_new.json`) + await this.setWhatsNewModalContent({ content: content.default }) + } this.localesLoaded = true }, watch: { diff --git a/src/components/WhatsNewModal.vue b/src/components/WhatsNewModal.vue index 4df51145d..d553048c9 100644 --- a/src/components/WhatsNewModal.vue +++ b/src/components/WhatsNewModal.vue @@ -25,15 +25,6 @@ - - - - - {{ clapCount }} - -