Merge pull request #2130 from dpalou/MOBILE-3132
MOBILE-3132 course: Fix errors when opening activities in offlinemain
commit
0d945fa8ad
|
@ -18,7 +18,7 @@
|
||||||
<ion-icon name="time"></ion-icon> {{ 'addon.mod_chat.sessionstart' | translate:{$a: chatInfo} }}
|
<ion-icon name="time"></ion-icon> {{ 'addon.mod_chat.sessionstart' | translate:{$a: chatInfo} }}
|
||||||
</ion-card>
|
</ion-card>
|
||||||
|
|
||||||
<div padding>
|
<div padding *ngIf="chat">
|
||||||
<a ion-button block color="primary" (click)="enterChat()">{{ 'addon.mod_chat.enterchat' | translate }}</a>
|
<a ion-button block color="primary" (click)="enterChat()">{{ 'addon.mod_chat.enterchat' | translate }}</a>
|
||||||
<a ion-button block color="light" margin-top *ngIf="sessionsAvailable" (click)="viewSessions()">{{ 'addon.mod_chat.viewreport' | translate }}</a>
|
<a ion-button block color="light" margin-top *ngIf="sessionsAvailable" (click)="viewSessions()">{{ 'addon.mod_chat.viewreport' | translate }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -47,7 +47,7 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp
|
||||||
timeAvailableFromReadable: string | boolean;
|
timeAvailableFromReadable: string | boolean;
|
||||||
timeAvailableTo: number | boolean;
|
timeAvailableTo: number | boolean;
|
||||||
timeAvailableToReadable: string | boolean;
|
timeAvailableToReadable: string | boolean;
|
||||||
isEmpty = false;
|
isEmpty = true;
|
||||||
groupInfo: CoreGroupInfo;
|
groupInfo: CoreGroupInfo;
|
||||||
entries = [];
|
entries = [];
|
||||||
firstEntry = false;
|
firstEntry = false;
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
</core-tabs>
|
</core-tabs>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-container *ngIf="!showTabs">
|
<ng-container *ngIf="feedback && !showTabs">
|
||||||
<ng-container *ngTemplateOutlet="tabOverview"></ng-container>
|
<ng-container *ngTemplateOutlet="tabOverview"></ng-container>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</core-loading>
|
</core-loading>
|
||||||
|
|
|
@ -113,9 +113,11 @@ export class AddonModFeedbackIndexComponent extends CoreCourseModuleMainActivity
|
||||||
super.ngOnInit();
|
super.ngOnInit();
|
||||||
|
|
||||||
this.loadContent(false, true).then(() => {
|
this.loadContent(false, true).then(() => {
|
||||||
this.feedbackProvider.logView(this.feedback.id, this.feedback.name).catch(() => {
|
if (this.feedback) {
|
||||||
// Ignore errors.
|
this.feedbackProvider.logView(this.feedback.id, this.feedback.name).catch(() => {
|
||||||
});
|
// Ignore errors.
|
||||||
|
});
|
||||||
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.tabsReady = true;
|
this.tabsReady = true;
|
||||||
});
|
});
|
||||||
|
@ -199,10 +201,12 @@ export class AddonModFeedbackIndexComponent extends CoreCourseModuleMainActivity
|
||||||
// Now fill the context menu.
|
// Now fill the context menu.
|
||||||
this.fillContextMenu(refresh);
|
this.fillContextMenu(refresh);
|
||||||
|
|
||||||
// Check if there are responses stored in offline.
|
if (this.feedback) {
|
||||||
return this.feedbackOffline.hasFeedbackOfflineData(this.feedback.id).then((hasOffline) => {
|
// Check if there are responses stored in offline.
|
||||||
this.hasOffline = hasOffline;
|
return this.feedbackOffline.hasFeedbackOfflineData(this.feedback.id).then((hasOffline) => {
|
||||||
});
|
this.hasOffline = hasOffline;
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1316,7 +1316,7 @@
|
||||||
"core.back": "Back",
|
"core.back": "Back",
|
||||||
"core.block.blocks": "Blocks",
|
"core.block.blocks": "Blocks",
|
||||||
"core.cancel": "Cancel",
|
"core.cancel": "Cancel",
|
||||||
"core.cannotconnect": "Cannot connect: Verify that you have correctly typed the URL and that your site uses Moodle 2.4 or later.",
|
"core.cannotconnect": "Cannot connect: Verify that you have correctly typed the URL and that your site uses Moodle 3.1 or later.",
|
||||||
"core.cannotdownloadfiles": "File downloading is disabled. Please contact your site administrator.",
|
"core.cannotdownloadfiles": "File downloading is disabled. Please contact your site administrator.",
|
||||||
"core.captureaudio": "Record audio",
|
"core.captureaudio": "Record audio",
|
||||||
"core.capturedimage": "Taken picture.",
|
"core.capturedimage": "Taken picture.",
|
||||||
|
|
Loading…
Reference in New Issue