File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 680680        } 
681681      } 
682682    } 
683+ 
684+     collapseNotes ( tasks )  { 
685+       tasks . forEach ( ( task )  =>  { 
686+         delete  task . showNotes ; 
687+       } ) ; 
688+     } 
683689  } 
684690
685691  // hacky fix for ff 
Original file line number Diff line number Diff line change 66    –
77    Estimate remaining: ~< strong  ng-bind ="vm.totalEstimationRemaining|duration "> </ strong > 
88    < ng-md-icon  icon ="timer "> </ ng-md-icon > 
9+ 
10+     < md-button  ng-click ="vm.collapseNotes() "
11+                class ="md-icon-button md-primary "> 
12+       < ng-md-icon  icon ="speaker_notes_off "> </ ng-md-icon > 
13+     </ md-button > 
914  </ p > 
1015</ header > 
1116
Original file line number Diff line number Diff line change 55 * # workView 
66 */ 
77
8- ( function   ( )  { 
8+ ( function ( )  { 
99  'use strict' ; 
1010
1111  angular 
6161      Dialogs ( 'ADD_TASK' ,  undefined ,  true ) ; 
6262    } ; 
6363
64+     vm . collapseNotes  =  ( )  =>  { 
65+       Tasks . collapseNotes ( vm . tasksDone ) ; 
66+       Tasks . collapseNotes ( vm . tasksUndone ) ; 
67+     } ; 
68+ 
6469    vm . onTaskDoneChangedUndoneList  =  ( task )  =>  { 
6570      if  ( task . isDone )  { 
66-         const  taskIndex  =  _ . findIndex ( vm . tasksUndone ,  function   ( taskInArray )  { 
71+         const  taskIndex  =  _ . findIndex ( vm . tasksUndone ,  function ( taskInArray )  { 
6772          return  taskInArray . id  ===  task . id ; 
6873        } ) ; 
6974        // add to the end of the done task list 
7580
7681    vm . onTaskDoneChangedDoneList  =  ( task )  =>  { 
7782      if  ( ! task . isDone )  { 
78-         const  taskIndex  =  _ . findIndex ( vm . tasksDone ,  function   ( taskInArray )  { 
83+         const  taskIndex  =  _ . findIndex ( vm . tasksDone ,  function ( taskInArray )  { 
7984          return  taskInArray . id  ===  task . id ; 
8085        } ) ; 
8186        // add to the start of the undone task list 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments