MOBILE-2567 course: Fix hiddenoncoursepage shown when it shouldn't
This commit is contained in:
parent
eae69814fd
commit
f93ea360b1
@ -153,7 +153,7 @@ export class CoreCourseHelperProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if the module is stealth.
|
// Check if the module is stealth.
|
||||||
module.isStealth = !module.visibleoncoursepage || (module.visible && !section.visible);
|
module.isStealth = module.visibleoncoursepage === 0 || (module.visible && !section.visible);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user