mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 09:23:58 +08:00
Merge pull request #7406 from wandji20/wb-SCI-10560
Add archived tag to protocol liked tasks modal items [SCI-10560]
This commit is contained in:
commit
c4a02538fe
2 changed files with 8 additions and 4 deletions
|
@ -129,13 +129,13 @@ class ProtocolsController < ApplicationController
|
|||
project_folder = record.my_module.experiment.project.project_folder
|
||||
|
||||
{
|
||||
my_module_name: record.my_module.name,
|
||||
experiment_name: record.my_module.experiment.name,
|
||||
project_name: record.my_module.experiment.project.name,
|
||||
my_module_name: record.my_module.name_with_label,
|
||||
experiment_name: record.my_module.experiment.name_with_label,
|
||||
project_name: record.my_module.experiment.project.name_with_label,
|
||||
my_module_url: protocols_my_module_path(record.my_module),
|
||||
experiment_url: my_modules_path(experiment_id: record.my_module.experiment.id),
|
||||
project_url: experiments_path(project_id: record.my_module.experiment.project.id),
|
||||
project_folder_name: project_folder.present? ? project_folder.name : nil,
|
||||
project_folder_name: project_folder.present? ? project_folder.name_with_label : nil,
|
||||
project_folder_url: project_folder.present? ? project_folder_projects_url(project_folder) : nil
|
||||
}
|
||||
},
|
||||
|
|
|
@ -322,6 +322,10 @@ class Project < ApplicationRecord
|
|||
report.destroy if report.present?
|
||||
end
|
||||
|
||||
def archived_branch?
|
||||
archived?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def project_folder_team
|
||||
|
|
Loading…
Reference in a new issue