From b1847b8c41b25fe91be69c67f07cd2264639bac0 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 15 Aug 2018 10:14:45 +0300 Subject: [PATCH] bit more --- client/src/ui/modals.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/ui/modals.js b/client/src/ui/modals.js index 23f74ec9..da70476d 100644 --- a/client/src/ui/modals.js +++ b/client/src/ui/modals.js @@ -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 });