MOBILE-3068 feedback: Fix offline warning shown when it shouldn't
This commit is contained in:
		
							parent
							
								
									f4eee3c0e0
								
							
						
					
					
						commit
						3920319511
					
				| @ -195,14 +195,14 @@ export class AddonModFeedbackIndexComponent extends CoreCourseModuleMainActivity | |||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             return this.fetchFeedbackOverviewData(this.access); |             return this.fetchFeedbackOverviewData(this.access); | ||||||
|         }).then(() => { |         }).finally(() => { | ||||||
|             // All data obtained, now fill the context menu.
 |             // Now fill the context menu.
 | ||||||
|             this.fillContextMenu(refresh); |             this.fillContextMenu(refresh); | ||||||
| 
 | 
 | ||||||
|             // Check if there are responses stored in offline.
 |             // Check if there are responses stored in offline.
 | ||||||
|             return this.feedbackOffline.hasFeedbackOfflineData(this.feedback.id); |             return this.feedbackOffline.hasFeedbackOfflineData(this.feedback.id).then((hasOffline) => { | ||||||
|         }).then((hasOffline) => { |                 this.hasOffline = hasOffline; | ||||||
|             this.hasOffline = hasOffline; |             }); | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user