about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-24 23:56:06 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:15 -0500
commit9bd0bb4e260d1dee975f4b4e50ca52c04e7c317f (patch)
tree405ba30326d276da5146c89d66852afc7415a2a7 /app/lib
parent9c75c01decf1fbdb32350998c39a9d7fdeb00951 (diff)
[UI, Accessibiity] Make dashed nest level indicators optional
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/user_settings_decorator.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/lib/user_settings_decorator.rb b/app/lib/user_settings_decorator.rb
index 8106b976c..cd84d42e8 100644
--- a/app/lib/user_settings_decorator.rb
+++ b/app/lib/user_settings_decorator.rb
@@ -45,6 +45,7 @@ class UserSettingsDecorator
     user.settings['crop_images']         = crop_images_preference if change?('setting_crop_images')
 
     user.settings['manual_publish']      = manual_publish_preference if change?('setting_manual_publish')
+    user.settings['style_dashed_nest']   = style_dashed_nest_preference if change?('setting_style_dashed_nest')
   end
 
   def merged_notification_emails
@@ -163,6 +164,10 @@ class UserSettingsDecorator
     boolean_cast_setting 'setting_manual_publish'
   end
 
+  def style_dashed_nest_preference
+    boolean_cast_setting 'setting_style_dashed_nest'
+  end
+
   def boolean_cast_setting(key)
     ActiveModel::Type::Boolean.new.cast(settings[key])
   end