diff options
| author | dtluna <dtluna@openmailbox.org> | 2018-02-09 16:37:32 +0300 |
|---|---|---|
| committer | dtluna <dtluna@openmailbox.org> | 2018-02-09 16:37:32 +0300 |
| commit | e49cf7b67a3d1532ff19091697c4d2487e14d257 (patch) | |
| tree | 500a2635fc10f80304cbd8f783a587ddc9e7000c /src | |
| parent | e2248bcf4fc57b7dbac9585a41b0578201394d88 (diff) | |
Add textlimit
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.js b/src/main.js index 8d598d78..7fb9a047 100644 --- a/src/main.js +++ b/src/main.js @@ -78,9 +78,10 @@ const i18n = new VueI18n({ window.fetch('/api/statusnet/config.json') .then((res) => res.json()) .then((data) => { - const {name, closed: registrationClosed, textlimit} = data + const {name, closed: registrationClosed, textlimit} = data.site + store.dispatch('setOption', { name: 'name', value: name }) - store.dispatch('setOption', { name: 'registrationOpen', value: !registrationClosed }) + store.dispatch('setOption', { name: 'registrationOpen', value: (registrationClosed === '0') }) store.dispatch('setOption', { name: 'textlimit', value: parseInt(textlimit) }) }) |
