mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 15:54:00 +08:00
styling changes
This commit is contained in:
parent
420ec69f20
commit
0bad40c00d
3 changed files with 5 additions and 3 deletions
|
@ -92,7 +92,7 @@ class ExperimentsController < ApplicationController
|
|||
redirect_to module_archive_experiment_path(@experiment) if @experiment.archived_branch?
|
||||
@project = @experiment.project
|
||||
@active_modules = @experiment.my_modules.active.order(:name)
|
||||
@my_module_visible_table_columns = current_user.settings["visible_my_module_table_columns"].present? ? current_user.settings["visible_my_module_table_columns"] : []
|
||||
@my_module_visible_table_columns = current_user.settings["visible_my_module_table_columns"].presence || []
|
||||
end
|
||||
|
||||
def load_table
|
||||
|
|
|
@ -12,7 +12,9 @@ class MyModulesController < ApplicationController
|
|||
before_action :check_manage_permissions, only: %i(
|
||||
create description due_date update_description update_protocol_description update_protocol
|
||||
)
|
||||
before_action :check_read_permissions, except: %i(update update_description update_protocol_description restore_group save_table_state)
|
||||
before_action :check_read_permissions, except: %i(
|
||||
update update_description update_protocol_description restore_group save_table_state
|
||||
)
|
||||
before_action :check_update_state_permissions, only: :update_state
|
||||
before_action :set_inline_name_editing, only: %i(protocols results activities archive)
|
||||
before_action :load_experiment_my_modules, only: %i(protocols results activities archive)
|
||||
|
|
|
@ -386,7 +386,7 @@ Rails.application.routes.draw do
|
|||
# as well as 'module info' page for single module (HTML)
|
||||
resources :my_modules, path: '/modules', only: [:show, :update] do
|
||||
post 'save_table_state', on: :collection, defaults: { format: 'json' }
|
||||
|
||||
|
||||
member do
|
||||
get :permissions
|
||||
get :actions_dropdown
|
||||
|
|
Loading…
Reference in a new issue