mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03: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:
parent
9d356de8b5
commit
3996b5debb
@ -21,7 +21,6 @@ var _ = require('lodash'),
|
||||
themeConfig = require('./config'),
|
||||
config = require('../config'),
|
||||
engine = require('./engine'),
|
||||
_ = require('lodash'),
|
||||
// Current instance of ActiveTheme
|
||||
currentActiveTheme;
|
||||
|
||||
|
@ -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'));
|
||||
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user