mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
be more explicit about priority value vs context class
This commit is contained in:
parent
812599cb77
commit
9cf4d9086b
2 changed files with 2 additions and 2 deletions
2
common/dist/scripts/habitrpg-shared.js
vendored
2
common/dist/scripts/habitrpg-shared.js
vendored
|
|
@ -5208,7 +5208,7 @@ api.taskClasses = function(task, filters, dayStart, lastCron, showCompleted, mai
|
|||
classes += ' difficulty-easy';
|
||||
} else if (priority === 1.5) {
|
||||
classes += ' difficulty-medium';
|
||||
} else {
|
||||
} else if (priority === 2) {
|
||||
classes += ' difficulty-hard';
|
||||
}
|
||||
if (value < -20) {
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ api.taskClasses = (task, filters=[], dayStart=0, lastCron=+new Date, showComplet
|
|||
classes += ' difficulty-easy'
|
||||
else if priority == 1.5
|
||||
classes += ' difficulty-medium'
|
||||
else # priority == 2
|
||||
else if priority == 2
|
||||
classes += ' difficulty-hard'
|
||||
|
||||
if value < -20
|
||||
|
|
|
|||
Loading…
Reference in a new issue