This commit is contained in:
Jiiks 2018-08-15 10:14:45 +03:00
parent 11eed2c89d
commit b1847b8c41
1 changed files with 3 additions and 3 deletions

View File

@ -236,16 +236,16 @@ export default class Modals {
const pmErrCount = PluginManager.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({
header: `
${bothErr ? '' : pmErrCount ? PluginManager.moduleName : ThemeManager.moduleName} -
${failedModule} -
${pmErrCount ? `${pmErrCount} ${PluginManager.contentType}${pmErrCount !== 1 ? 's' : ''}` : ''}
${pmErrCount && tmErrCount ? ' and ' : ''}
${tmErrCount ? `${tmErrCount} ${ThemeManager.contentType}${tmErrCount !== 1 ? 's' : ''}` : ''} failed to load
`,
module: bothErr ? 'Content Manager' : pmErrCount ? PluginManager.moduleName : ThemeManager.moduleName,
module: failedModule,
type: 'err',
content: errors
});