[pleroma#36] Add upload errors

This commit is contained in:
Rinpatch 2018-12-08 18:23:21 +03:00
parent fb5261b926
commit ba188eddab
5 changed files with 14 additions and 2 deletions

View file

@ -21,11 +21,12 @@ const afterStoreSetup = ({store, i18n}) => {
window.fetch('/api/statusnet/config.json')
.then((res) => res.json())
.then((data) => {
const {name, closed: registrationClosed, textlimit, server} = data.site
const {name, closed: registrationClosed, textlimit, uploadlimit, server} = data.site
store.dispatch('setInstanceOption', { name: 'name', value: name })
store.dispatch('setInstanceOption', { name: 'registrationOpen', value: (registrationClosed === '0') })
store.dispatch('setInstanceOption', { name: 'textlimit', value: parseInt(textlimit) })
store.dispatch('setInstanceOption', { name: 'uploadlimit', value: parseInt(uploadlimit) })
store.dispatch('setInstanceOption', { name: 'server', value: server })
var apiConfig = data.site.pleromafe