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