do not prepare meta/announcements on firstrun

This commit is contained in:
les 2021-09-28 12:55:54 +02:00
parent c3c05451db
commit a72a9fb501
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -50,8 +50,10 @@ export const actions = {
// we use it to get configuration from db, set locale, etc... // we use it to get configuration from db, set locale, etc...
nuxtServerInit ({ commit }, { req }) { nuxtServerInit ({ commit }, { req }) {
commit('setSettings', req.settings) commit('setSettings', req.settings)
commit('setAnnouncements', req.announcements) if (!req.firstrun) {
commit('update', req.meta) commit('setAnnouncements', req.announcements)
commit('update', req.meta)
}
}, },
async updateAnnouncements ({ commit }) { async updateAnnouncements ({ commit }) {
const announcements = await this.$axios.$get('/announcements') const announcements = await this.$axios.$get('/announcements')