File tree 1 file changed +4
-2
lines changed
src/features/saveState/js
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 84
84
* @description Restores the provided state into the grid
85
85
* @param {scope } $scope a scope that we can broadcast on
86
86
* @param {object } state the state that should be restored into the grid
87
+ * @returns {object } the promise created by refresh
87
88
*/
88
89
restore : function ( $scope , state ) {
89
- service . restore ( grid , $scope , state ) ;
90
+ return service . restore ( grid , $scope , state ) ;
90
91
}
91
92
}
92
93
}
302
303
* @param {Grid } grid the grid whose state we'd like to restore
303
304
* @param {scope } $scope a scope that we can broadcast on
304
305
* @param {object } state the state we'd like to restore
306
+ * @returns {object } the promise created by refresh
305
307
*/
306
308
restore : function ( grid , $scope , state ) {
307
309
if ( state . columns ) {
328
330
service . restorePagination ( grid , state . pagination ) ;
329
331
}
330
332
331
- grid . refresh ( ) ;
333
+ return grid . refresh ( ) ;
332
334
} ,
333
335
334
336
You can’t perform that action at this time.
0 commit comments