diff options
author | blackle <isabelle@blackle-mori.com> | 2017-04-11 10:10:16 -0400 |
---|---|---|
committer | blackle <isabelle@blackle-mori.com> | 2017-04-11 10:10:16 -0400 |
commit | 06444bf050a267da7001c2801480c5fae3e1559e (patch) | |
tree | 4dd809131a514dac055bcc7abd038fcbf638669f /app/views | |
parent | f53fb6aa660834074bbbffac5b1fe5ea0cc85edf (diff) |
Allow user to disable the boost confirm dialog in preferences
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/home/initial_state.json.rabl | 1 | ||||
-rw-r--r-- | app/views/settings/preferences/show.html.haml | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/views/home/initial_state.json.rabl b/app/views/home/initial_state.json.rabl index 71949ab0e..caee2bfc7 100644 --- a/app/views/home/initial_state.json.rabl +++ b/app/views/home/initial_state.json.rabl @@ -5,6 +5,7 @@ node(:meta) do access_token: @token, locale: I18n.locale, me: current_account.id, + boost_modal: current_account.user.setting_boost_modal, } end diff --git a/app/views/settings/preferences/show.html.haml b/app/views/settings/preferences/show.html.haml index 64cf32c3a..e819429b6 100644 --- a/app/views/settings/preferences/show.html.haml +++ b/app/views/settings/preferences/show.html.haml @@ -22,5 +22,8 @@ = ff.input :must_be_follower, as: :boolean, wrapper: :with_label = ff.input :must_be_following, as: :boolean, wrapper: :with_label + .fields-group + = f.input :setting_boost_modal, as: :boolean, wrapper: :with_label + .actions = f.button :button, t('generic.save_changes'), type: :submit |