mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 05:34:55 +08:00
Fix hound warnings [SCI-999]
This commit is contained in:
parent
78d5cbb223
commit
f97c20e9b5
2 changed files with 6 additions and 4 deletions
|
@ -337,9 +337,11 @@ class StepsController < ApplicationController
|
|||
end
|
||||
|
||||
# Create localized title for complete/uncomplete button
|
||||
localized_title = !completed ?
|
||||
t("protocols.steps.options.complete_title") :
|
||||
t("protocols.steps.options.uncomplete_title")
|
||||
localized_title = if !completed
|
||||
t('protocols.steps.options.complete_title')
|
||||
else
|
||||
t('protocols.steps.options.uncomplete_title')
|
||||
end
|
||||
task_button_title =
|
||||
t('my_modules.buttons.uncomplete') if task_completed
|
||||
format.json do
|
||||
|
|
|
@ -16,5 +16,5 @@ class Extends
|
|||
system_message: 2 }
|
||||
|
||||
TASKS_STATES = { uncompleted: 0,
|
||||
completed: 1 }
|
||||
completed: 1 }
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue