separation
This commit is contained in:
parent
912aa228d1
commit
573a980512
12 changed files with 56 additions and 31 deletions
|
|
@ -183,7 +183,7 @@ const getTOS = async ({ store }) => {
|
|||
const res = await window.fetch('/static/terms-of-service.html')
|
||||
if (res.ok) {
|
||||
const html = await res.text()
|
||||
useInstanceStore().set({ name: 'tos', value: html })
|
||||
useInstanceStore().set({ name: 'instanceIdentity.tos', value: html })
|
||||
} else {
|
||||
throw res
|
||||
}
|
||||
|
|
@ -198,7 +198,7 @@ const getInstancePanel = async ({ store }) => {
|
|||
if (res.ok) {
|
||||
const html = await res.text()
|
||||
useInstanceStore().set({
|
||||
name: 'instanceSpecificPanelContent',
|
||||
name: 'instanceIdentity.instanceSpecificPanelContent',
|
||||
value: html,
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,9 @@ export default (store) => {
|
|||
if (store.state.users.currentUser) {
|
||||
next()
|
||||
} else {
|
||||
next(useInstanceStore().instanceIdentity.redirectRootNoLogin || '/main/all')
|
||||
next(
|
||||
useInstanceStore().instanceIdentity.redirectRootNoLogin || '/main/all',
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -50,7 +52,8 @@ export default (store) => {
|
|||
return (
|
||||
(store.state.users.currentUser
|
||||
? useInstanceStore().instanceIdentity.redirectRootLogin
|
||||
: useInstanceStore().instanceIdentity.redirectRootNoLogin) || '/main/all'
|
||||
: useInstanceStore().instanceIdentity.redirectRootNoLogin) ||
|
||||
'/main/all'
|
||||
)
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue