nodebb-plugin-composer-default 10.2.24 → 10.2.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-composer-default",
3
- "version": "10.2.24",
3
+ "version": "10.2.26",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -21,7 +21,7 @@ define('composer/categoryList', [
21
21
 
22
22
  selector = categorySelector.init(listContainer.find('[component="category-selector"]'), {
23
23
  privilege: 'topics:create',
24
- states: ['watching', 'notwatching', 'ignoring'],
24
+ states: ['watching', 'tracking', 'notwatching', 'ignoring'],
25
25
  onSelect: function (selectedCategory) {
26
26
  if (postData.hasOwnProperty('cid')) {
27
27
  changeCategory(postContainer, postData, selectedCategory);
@@ -44,7 +44,7 @@ define('composer/categoryList', [
44
44
  .on('click', function () {
45
45
  categorySelector.modal({
46
46
  privilege: 'topics:create',
47
- states: ['watching', 'notwatching', 'ignoring'],
47
+ states: ['watching', 'tracking', 'notwatching', 'ignoring'],
48
48
  openOnLoad: true,
49
49
  showLinks: false,
50
50
  onSubmit: function (selectedCategory) {
@@ -230,7 +230,7 @@ define('composer/drafts', ['api', 'alerts'], function (api, alerts) {
230
230
 
231
231
  drafts.listAvailable = function () {
232
232
  const available = drafts.getList('available');
233
- return available.map(drafts.get);
233
+ return available.map(drafts.get).filter(Boolean);
234
234
  };
235
235
 
236
236
  drafts.getAvailableCount = function () {