diff --git a/src/addon/mod/chat/components/index/addon-mod-chat-index.html b/src/addon/mod/chat/components/index/addon-mod-chat-index.html index 486cbd508..85ae32c07 100644 --- a/src/addon/mod/chat/components/index/addon-mod-chat-index.html +++ b/src/addon/mod/chat/components/index/addon-mod-chat-index.html @@ -18,7 +18,7 @@ {{ 'addon.mod_chat.sessionstart' | translate:{$a: chatInfo} }} -
+
{{ 'addon.mod_chat.enterchat' | translate }} {{ 'addon.mod_chat.viewreport' | translate }}
diff --git a/src/addon/mod/data/components/index/index.ts b/src/addon/mod/data/components/index/index.ts index 2bfae1f2a..ecdd5064e 100644 --- a/src/addon/mod/data/components/index/index.ts +++ b/src/addon/mod/data/components/index/index.ts @@ -47,7 +47,7 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp timeAvailableFromReadable: string | boolean; timeAvailableTo: number | boolean; timeAvailableToReadable: string | boolean; - isEmpty = false; + isEmpty = true; groupInfo: CoreGroupInfo; entries = []; firstEntry = false; diff --git a/src/addon/mod/feedback/components/index/addon-mod-feedback-index.html b/src/addon/mod/feedback/components/index/addon-mod-feedback-index.html index 04a263d52..d7652f3fd 100644 --- a/src/addon/mod/feedback/components/index/addon-mod-feedback-index.html +++ b/src/addon/mod/feedback/components/index/addon-mod-feedback-index.html @@ -37,7 +37,7 @@ - + diff --git a/src/addon/mod/feedback/components/index/index.ts b/src/addon/mod/feedback/components/index/index.ts index 57fe7a9f9..daa067482 100644 --- a/src/addon/mod/feedback/components/index/index.ts +++ b/src/addon/mod/feedback/components/index/index.ts @@ -113,9 +113,11 @@ export class AddonModFeedbackIndexComponent extends CoreCourseModuleMainActivity super.ngOnInit(); this.loadContent(false, true).then(() => { - this.feedbackProvider.logView(this.feedback.id, this.feedback.name).catch(() => { - // Ignore errors. - }); + if (this.feedback) { + this.feedbackProvider.logView(this.feedback.id, this.feedback.name).catch(() => { + // Ignore errors. + }); + } }).finally(() => { this.tabsReady = true; }); @@ -199,10 +201,12 @@ export class AddonModFeedbackIndexComponent extends CoreCourseModuleMainActivity // 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; - }); + if (this.feedback) { + // Check if there are responses stored in offline. + return this.feedbackOffline.hasFeedbackOfflineData(this.feedback.id).then((hasOffline) => { + this.hasOffline = hasOffline; + }); + } }); } diff --git a/src/assets/lang/en.json b/src/assets/lang/en.json index c5e9e5631..20432a540 100644 --- a/src/assets/lang/en.json +++ b/src/assets/lang/en.json @@ -1316,7 +1316,7 @@ "core.back": "Back", "core.block.blocks": "Blocks", "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.captureaudio": "Record audio", "core.capturedimage": "Taken picture.",