nodebb-plugin-composer-default 10.0.5 → 10.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library.js +0 -16
- package/package.json +1 -1
- package/static/lib/composer/categoryList.js +1 -0
package/library.js
CHANGED
|
@@ -105,22 +105,6 @@ plugin.getFormattingOptions = async function () {
|
|
|
105
105
|
|
|
106
106
|
payload = await plugins.hooks.fire('filter:composer.formatting', payload);
|
|
107
107
|
|
|
108
|
-
// TODO: Backwards compatibility -- remove in v1.16.0
|
|
109
|
-
payload.options = payload.options.map((option) => {
|
|
110
|
-
option.visibility = {
|
|
111
|
-
...defaultVisibility,
|
|
112
|
-
...option.visibility || {},
|
|
113
|
-
};
|
|
114
|
-
if (option.hasOwnProperty('mobile')) {
|
|
115
|
-
winston.warn('[composer/formatting] `mobile` is no longer supported as a formatting option, use `visibility` instead (default values are passed in payload)');
|
|
116
|
-
option.visibility.mobile = option.mobile;
|
|
117
|
-
option.visibility.desktop = !option.mobile;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
return option;
|
|
121
|
-
});
|
|
122
|
-
// end
|
|
123
|
-
|
|
124
108
|
return payload ? payload.options : null;
|
|
125
109
|
};
|
|
126
110
|
|
package/package.json
CHANGED
|
@@ -85,6 +85,7 @@ define('composer/categoryList', [
|
|
|
85
85
|
var uuid = postContainer.attr('data-uuid');
|
|
86
86
|
taskbar.update('composer', uuid, {
|
|
87
87
|
image: category.backgroundImage,
|
|
88
|
+
color: category.color,
|
|
88
89
|
'background-color': category.bgColor,
|
|
89
90
|
icon: category.icon && category.icon.slice(3),
|
|
90
91
|
});
|