mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
do not prepare meta/announcements on firstrun
This commit is contained in:
parent
c3c05451db
commit
a72a9fb501
1 changed files with 4 additions and 2 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue