Merge pull request #4136 from Alys/hide_completed_dailies-with-edit-fix
allow Daily to stay visible while being edited
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user