bit more
This commit is contained in:
parent
11eed2c89d
commit
b1847b8c41
|
@ -236,16 +236,16 @@ export default class Modals {
|
||||||
|
|
||||||
const pmErrCount = PluginManager.errors.length;
|
const pmErrCount = PluginManager.errors.length;
|
||||||
const tmErrCount = ThemeManager.errors.length;
|
const tmErrCount = ThemeManager.errors.length;
|
||||||
const bothErr = pmErrCount && tmErrCount;
|
const failedModule = pmErrCount && tmErrCount ? 'Content Manager' : pmErrCount ? 'Plugin Manager' : 'Theme Manager';
|
||||||
|
|
||||||
const modal = this.error({
|
const modal = this.error({
|
||||||
header: `
|
header: `
|
||||||
${bothErr ? '' : pmErrCount ? PluginManager.moduleName : ThemeManager.moduleName} -
|
${failedModule} -
|
||||||
${pmErrCount ? `${pmErrCount} ${PluginManager.contentType}${pmErrCount !== 1 ? 's' : ''}` : ''}
|
${pmErrCount ? `${pmErrCount} ${PluginManager.contentType}${pmErrCount !== 1 ? 's' : ''}` : ''}
|
||||||
${pmErrCount && tmErrCount ? ' and ' : ''}
|
${pmErrCount && tmErrCount ? ' and ' : ''}
|
||||||
${tmErrCount ? `${tmErrCount} ${ThemeManager.contentType}${tmErrCount !== 1 ? 's' : ''}` : ''} failed to load
|
${tmErrCount ? `${tmErrCount} ${ThemeManager.contentType}${tmErrCount !== 1 ? 's' : ''}` : ''} failed to load
|
||||||
`,
|
`,
|
||||||
module: bothErr ? 'Content Manager' : pmErrCount ? PluginManager.moduleName : ThemeManager.moduleName,
|
module: failedModule,
|
||||||
type: 'err',
|
type: 'err',
|
||||||
content: errors
|
content: errors
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue