mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
fixed default visible column logic
This commit is contained in:
parent
3c23465114
commit
96987977d1
2 changed files with 6 additions and 1 deletions
|
@ -96,7 +96,7 @@ class ExperimentsController < ApplicationController
|
|||
|
||||
@project = @experiment.project
|
||||
@active_modules = @experiment.my_modules.active.order(:name)
|
||||
@my_module_visible_table_columns = current_user.settings['visible_my_module_table_columns'].presence || []
|
||||
@my_module_visible_table_columns = current_user.my_module_visible_table_columns
|
||||
end
|
||||
|
||||
def load_table
|
||||
|
|
|
@ -692,6 +692,11 @@ class User < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
def my_module_visible_table_columns
|
||||
settings['visible_my_module_table_columns'].presence ||
|
||||
%w(id due_date age results status archived assigned tags comments)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def confirmation_required?
|
||||
|
|
Loading…
Reference in a new issue