diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-09 14:00:55 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-09 14:00:55 +0100 |
commit | 75f80bef107cfe9e9c0e6ba3dc51ef86c89e40cc (patch) | |
tree | d507368baac4e85d417af4c64ecc0d9c43a65963 /app/views/home/initial_state.json.rabl | |
parent | 23ebf60b95984764992c4b356048786ed0ab2953 (diff) |
Persist UI settings, add missing localizations for German
Diffstat (limited to 'app/views/home/initial_state.json.rabl')
-rw-r--r-- | app/views/home/initial_state.json.rabl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/views/home/initial_state.json.rabl b/app/views/home/initial_state.json.rabl new file mode 100644 index 000000000..0e9736f5f --- /dev/null +++ b/app/views/home/initial_state.json.rabl @@ -0,0 +1,24 @@ +object false + +node(:meta) { + { + access_token: @token, + locale: I18n.locale, + me: current_account.id, + } +} + +node(:compose) { + { + me: current_account.id, + private: current_account.locked?, + } +} + +node(:accounts) { + { + current_account.id => partial('api/v1/accounts/show', object: current_account), + } +} + +node(:settings) { @web_settings } |