Add unfollow modal (optional) (#4246)
* Add unfollow modal * unfollowing someone * remove unnecessary prop
This commit is contained in:
parent
89b988cab5
commit
3267e4a785
43 changed files with 146 additions and 5 deletions
|
@ -19,6 +19,7 @@ class UserSettingsDecorator
|
|||
user.settings['interactions'] = merged_interactions
|
||||
user.settings['default_privacy'] = default_privacy_preference
|
||||
user.settings['default_sensitive'] = default_sensitive_preference
|
||||
user.settings['unfollow_modal'] = unfollow_modal_preference
|
||||
user.settings['boost_modal'] = boost_modal_preference
|
||||
user.settings['delete_modal'] = delete_modal_preference
|
||||
user.settings['auto_play_gif'] = auto_play_gif_preference
|
||||
|
@ -42,6 +43,10 @@ class UserSettingsDecorator
|
|||
boolean_cast_setting 'setting_default_sensitive'
|
||||
end
|
||||
|
||||
def unfollow_modal_preference
|
||||
boolean_cast_setting 'setting_unfollow_modal'
|
||||
end
|
||||
|
||||
def boost_modal_preference
|
||||
boolean_cast_setting 'setting_boost_modal'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue