MOBILE-3182 core: Fix message when module is disabled
parent
4c03c0174a
commit
a2e37d26c8
|
@ -46,7 +46,7 @@
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item text-wrap no-lines *ngIf="attempt.readableMark">
|
<ion-item text-wrap no-lines *ngIf="attempt.readableMark">
|
||||||
<h2>{{ 'addon.mod_quiz.marks' | translate }}</h2>
|
<h2>{{ 'addon.mod_quiz.marks' | translate }}</h2>
|
||||||
<p><{{ attempt.readableMark }}</p>
|
<p>{{ attempt.readableMark }}</p>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item text-wrap no-lines *ngIf="attempt.readableGrade">
|
<ion-item text-wrap no-lines *ngIf="attempt.readableGrade">
|
||||||
<h2>{{ 'addon.mod_quiz.grade' | translate }}</h2>
|
<h2>{{ 'addon.mod_quiz.grade' | translate }}</h2>
|
||||||
|
|
|
@ -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.",
|
||||||
|
|
|
@ -278,7 +278,7 @@ export class CoreCourseModuleDelegate extends CoreDelegate {
|
||||||
* @return Whether module is disabled.
|
* @return Whether module is disabled.
|
||||||
*/
|
*/
|
||||||
isModuleDisabledInSite(modname: string, site?: CoreSite): boolean {
|
isModuleDisabledInSite(modname: string, site?: CoreSite): boolean {
|
||||||
const handler = this.getHandler(modname, true);
|
const handler = this.getHandler(modname, false);
|
||||||
|
|
||||||
if (handler) {
|
if (handler) {
|
||||||
site = site || this.sitesProvider.getCurrentSite();
|
site = site || this.sitesProvider.getCurrentSite();
|
||||||
|
|
Loading…
Reference in New Issue