File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed
SimpleTaskSystem.WebSpaAngular/App/Main/views/task
SimpleTaskSystem.WebSpaDurandal/App/Main/viewmodels Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 1818 } ) ;
1919
2020 vm . refreshTasks = function ( ) {
21- taskService . getTasks ( {
22- state : $scope . selectedTaskState > 0 ? $scope . selectedTaskState : null
23- } ) . success ( function ( data ) {
24- vm . tasks = data . tasks ;
25- } ) ;
21+ abp . ui . setBusy ( //Set whole page busy until getTasks complete
22+ null ,
23+ taskService . getTasks ( {
24+ state : $scope . selectedTaskState > 0 ? $scope . selectedTaskState : null
25+ } ) . success ( function ( data ) {
26+ vm . tasks = data . tasks ;
27+ } )
28+ ) ;
2629 } ;
2730
2831 vm . changeTaskState = function ( task ) {
Original file line number Diff line number Diff line change 1515 } ;
1616
1717 that . refreshTasks = function ( ) {
18- taskService . getTasks ( {
19- state : that . selectedTaskState ( ) > 0 ? that . selectedTaskState ( ) : null
20- } ) . done ( function ( data ) {
21- ko . mapping . fromJS ( data . tasks , that . tasks ) ;
22- } ) ;
18+ abp . ui . setBusy ( //Set whole page busy until getTasks complete
19+ null ,
20+ taskService . getTasks ( {
21+ state : that . selectedTaskState ( ) > 0 ? that . selectedTaskState ( ) : null
22+ } ) . done ( function ( data ) {
23+ ko . mapping . fromJS ( data . tasks , that . tasks ) ;
24+ } )
25+ ) ;
2326 } ;
2427
2528 that . changeTaskState = function ( task ) {
You can’t perform that action at this time.
0 commit comments