diff options
| author | rinpatch <rinpatch@sdf.org> | 2018-12-08 21:56:00 +0100 |
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2018-12-08 21:56:00 +0100 |
| commit | 788383d8a1e10abe7f9848b95bf7eb284f1113cd (patch) | |
| tree | c77552ed624032ba26c12d638c8344236f735453 /src | |
| parent | ba188eddab7f6eb8747bc43c179a8478d4f2a5a4 (diff) | |
Make uploadlimit an object that stores upload limits for avatars, banners, backgrounds, general content
Diffstat (limited to 'src')
| -rw-r--r-- | src/boot/after_store.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js index 38810326..6a7669ce 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -26,7 +26,10 @@ const afterStoreSetup = ({store, i18n}) => { 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: 'uploadlimit', value: parseInt(uploadlimit.uploadlimit) }) + store.dispatch('setInstanceOption', { name: 'avatarlimit', value: parseInt(uploadlimit.avatarlimit) }) + store.dispatch('setInstanceOption', { name: 'backgroundlimit', value: parseInt(uploadlimit.backgroundlimit) }) + store.dispatch('setInstanceOption', { name: 'bannerlimit', value: parseInt(uploadlimit.bannerlimit) }) store.dispatch('setInstanceOption', { name: 'server', value: server }) var apiConfig = data.site.pleromafe |
