Skip to content

Commit

Permalink
Avoid repeated icon stack in settings sidebar (mastodon#32201)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored and glitchbirdnew committed Oct 5, 2024
1 parent 1bb32a5 commit 7c7f078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/navigation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
n.item :filters, safe_join([material_symbol('filter_alt'), t('filters.index.title')]), filters_path, highlights_on: %r{/filters}, if: -> { current_user.functional? && !self_destruct }
n.item :statuses_cleanup, safe_join([material_symbol('history'), t('settings.statuses_cleanup')]), statuses_cleanup_path, if: -> { current_user.functional_or_moved? && !self_destruct }

n.item :security, safe_join([material_symbol('lock'), t('settings.account')]), edit_user_registration_path do |s|
n.item :security, safe_join([material_symbol('account_circle'), t('settings.account')]), edit_user_registration_path do |s|
s.item :password, safe_join([material_symbol('lock'), t('settings.account_settings')]), edit_user_registration_path, highlights_on: %r{^/auth|/settings/delete|/settings/migration|/settings/aliases|/settings/login_activities|^/disputes}
s.item :two_factor_authentication, safe_join([material_symbol('safety_check'), t('settings.two_factor_authentication')]), settings_two_factor_authentication_methods_path, highlights_on: %r{/settings/two_factor_authentication|/settings/otp_authentication|/settings/security_keys}
s.item :authorized_apps, safe_join([material_symbol('list_alt'), t('settings.authorized_apps')]), oauth_authorized_applications_path, if: -> { !self_destruct }
Expand Down

0 comments on commit 7c7f078

Please sign in to comment.