Add preference setting for delete toot modal (#3368)
* Set delete_modal preference to true by default * Does not show confirmation modal if delete_modal is false * Add ja translation for preference setting page
This commit is contained in:
committed by
Eugen Rochko
parent
b5e8994844
commit
402c19a924
@ -9,6 +9,7 @@ node(:meta) do
|
||||
me: current_account.id,
|
||||
admin: @admin.try(:id),
|
||||
boost_modal: current_account.user.setting_boost_modal,
|
||||
delete_modal: current_account.user.setting_delete_modal,
|
||||
auto_play_gif: current_account.user.setting_auto_play_gif,
|
||||
}
|
||||
end
|
||||
|
@ -40,6 +40,7 @@
|
||||
|
||||
.fields-group
|
||||
= f.input :setting_boost_modal, as: :boolean, wrapper: :with_label
|
||||
= f.input :setting_delete_modal, as: :boolean, wrapper: :with_label
|
||||
|
||||
.fields-group
|
||||
= f.input :setting_auto_play_gif, as: :boolean, wrapper: :with_label
|
||||
|
Reference in New Issue
Block a user