Verified Commit a72a9fb5 authored by les's avatar les
Browse files

do not prepare meta/announcements on firstrun

parent c3c05451
......@@ -50,8 +50,10 @@ export const actions = {
// we use it to get configuration from db, set locale, etc...
nuxtServerInit ({ commit }, { req }) {
commit('setSettings', req.settings)
commit('setAnnouncements', req.announcements)
commit('update', req.meta)
if (!req.firstrun) {
commit('setAnnouncements', req.announcements)
commit('update', req.meta)
}
},
async updateAnnouncements ({ commit }) {
const announcements = await this.$axios.$get('/announcements')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment