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 18
18
} ) ;
19
19
20
20
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
+ ) ;
26
29
} ;
27
30
28
31
vm . changeTaskState = function ( task ) {
Original file line number Diff line number Diff line change 15
15
} ;
16
16
17
17
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
+ ) ;
23
26
} ;
24
27
25
28
that . changeTaskState = function ( task ) {
You can’t perform that action at this time.
0 commit comments