Add appearance setting for 2 column layout (#1285)

This commit is contained in:
soky srm
2026-03-24 19:19:05 +01:00
committed by GitHub
parent 66c1f62691
commit 65f439e4da
5 changed files with 32 additions and 2 deletions

View File

@@ -320,6 +320,10 @@ class User < ApplicationRecord
preferences&.dig("show_split_grouped") != false
end
def dashboard_two_column?
preferences&.dig("dashboard_two_column") != false
end
def update_transactions_preferences(prefs)
transaction do
lock!