0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

🐷 💄 Tiny theme-related improvements (#8532)

refs #8530

- display theme name for non-fatal errors
- minor wording tweak
- remove duplicate lodash require
- use the shiny new calculated property syntax
This commit is contained in:
Hannah Wolfe 2017-06-06 12:33:18 +01:00 committed by Katharina Irrgang
parent 9d356de8b5
commit 3996b5debb
3 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,6 @@ var _ = require('lodash'),
themeConfig = require('./config'),
config = require('../config'),
engine = require('./engine'),
_ = require('lodash'),
// Current instance of ActiveTheme
currentActiveTheme;

View file

@ -19,8 +19,9 @@ module.exports = function toJSON(name, checkedTheme) {
themeResult = packages.filterPackages(toFilter, settingsCache.get('active_theme'));
} else {
// If we pass in a gscan result, convert this instead
toFilter = {};
toFilter[name] = themeList.get(name);
toFilter = {
[name]: themeList.get(name)
};
themeResult = packages.filterPackages(toFilter, settingsCache.get('active_theme'));

View file

@ -107,7 +107,7 @@
"themehandler": {
"missingTheme": "The currently active theme \"{theme}\" is missing.",
"invalidTheme": "The currently active theme \"{theme}\" is invalid.",
"themeHasErrors": "The currently active theme has errors, but theme still works."
"themeHasErrors": "The currently active theme \"{theme}\" has errors, but will still work."
}
},
"utils": {