mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
allow a task to stay visible while being edited, regardless of other parameters
This commit is contained in:
parent
d7c8d48078
commit
13b12b830c
1 changed files with 2 additions and 0 deletions
|
|
@ -193,6 +193,8 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
|||
*/
|
||||
|
||||
$scope.shouldShow = function(task, list, prefs){
|
||||
if (task._editing) // never hide a task while being edited
|
||||
return true;
|
||||
if (task.type == 'habit' || task.type == 'todo' || task.type == 'reward')
|
||||
return true;
|
||||
var shouldDo = task.type == 'daily' ? habitrpgShared.shouldDo(new Date, task.repeat, prefs) : true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue