MOBILE-4715 blog: Disable blog in activities if feature disabled
parent
d23160df19
commit
278270c9ee
|
@ -180,7 +180,8 @@ export class CoreCourseModuleSummaryComponent implements OnInit, OnDestroy {
|
||||||
this.courseId = this.courseId || this.module.course;
|
this.courseId = this.courseId || this.module.course;
|
||||||
this.moduleNameTranslated = CoreCourse.translateModuleName(this.module.modname, this.module.modplural);
|
this.moduleNameTranslated = CoreCourse.translateModuleName(this.module.modname, this.module.modplural);
|
||||||
|
|
||||||
this.blog = await AddonBlog.isPluginEnabled();
|
this.blog = !CoreSites.getCurrentSite()?.isFeatureDisabled('CoreCourseOptionsDelegate_AddonBlog') &&
|
||||||
|
await AddonBlog.isPluginEnabled();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
|
|
Loading…
Reference in New Issue