Merge pull request #2138 from dpalou/MOBILE-3182
MOBILE-3182 core: Fix message when module is disabledmain
commit
65afcc87c3
|
@ -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>
|
||||||
|
|
|
@ -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