Merge pull request #2106 from sammarshallou/MOBILE-3140
MOBILE-3140 Blocks: Make blocks work if displaydata not specifiedmain
commit
e1e1a212d3
|
@ -664,7 +664,8 @@ export class CoreSitePluginsHelperProvider {
|
|||
|
||||
const uniqueName = this.sitePluginsProvider.getHandlerUniqueName(plugin, handlerName),
|
||||
blockName = (handlerSchema.moodlecomponent || plugin.component).replace('block_', ''),
|
||||
prefixedTitle = this.getPrefixedString(plugin.addon, handlerSchema.displaydata.title || 'pluginname');
|
||||
titleString = (handlerSchema.displaydata && handlerSchema.displaydata.title) ? handlerSchema.displaydata.title : 'pluginname',
|
||||
prefixedTitle = this.getPrefixedString(plugin.addon, titleString);
|
||||
|
||||
this.blockDelegate.registerHandler(
|
||||
new CoreSitePluginsBlockHandler(uniqueName, prefixedTitle, blockName, handlerSchema, initResult));
|
||||
|
|
Loading…
Reference in New Issue