Merge pull request #2138 from dpalou/MOBILE-3182

MOBILE-3182 core: Fix message when module is disabled
main
Juan Leyva 2019-11-06 15:53:04 +01:00 committed by GitHub
commit 65afcc87c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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();