Skip to content

Commit

Permalink
more refactorings to resolve rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jjabari-op committed Aug 20, 2024
1 parent 87ec0da commit 75a358f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ def render_user_name_and_time(container)

def render_created_or_changed_on_text(container)
container.with_column(mr: 1, classes: "hidden-for-mobile") do
text_key = journal.initial? ? "activities.work_packages.activity_tab.created_on" : "activities.work_packages.activity_tab.changed_on"
text_key = if journal.initial?
"activities.work_packages.activity_tab.created_on"
else
"activities.work_packages.activity_tab.changed_on"
end
render(Primer::Beta::Text.new(font_size: :small, color: :subtle, mt: 1)) { t(text_key) }
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/work_packages/activities_tab_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def journal_params

def create_notification_service_call
### taken from ActivitiesByWorkPackageAPI
call = AddWorkPackageNoteService
AddWorkPackageNoteService
.new(user: User.current,
work_package: @work_package)
.call(journal_params[:notes],
Expand Down

0 comments on commit 75a358f

Please sign in to comment.