market fixes 28th nov (#9593)

* list special gear by the `specialClass` - fixes #9485

* only disable the currencly label + value not the amount input - fixes #9492

* disable transformations on equipment previews - fixes #9497

* show boss strength - fixes #9522

* pin time travelers animals - closes #9382

* clean up + package-lock ?

* fix quest info
This commit is contained in:
negue
2017-12-05 21:09:34 +01:00
committed by Sabe Jones
parent 4b610ba3f1
commit c56c69d464
12 changed files with 136 additions and 77 deletions

View File

@@ -3,9 +3,9 @@ import getItemInfo from '../libs/getItemInfo';
import { BadRequest } from '../libs/errors';
import i18n from '../i18n';
import isPinned from '../libs/isPinned';
import getItemByPathAndType from '../libs/getItemByPathAndType';
import getOfficialPinnedItems from '../libs/getOfficialPinnedItems';
import get from 'lodash/get';
import each from 'lodash/each';
import sortBy from 'lodash/sortBy';
import lodashFind from 'lodash/find';
@@ -136,9 +136,7 @@ function togglePinnedItem (user, {item, type, path}, req = {}) {
// If path isn't passed it means an item was passed
path = getItemInfo(user, type, item, officialPinnedItems, req.language).path;
} else {
if (!item) {
item = get(content, path);
}
item = getItemByPathAndType(type, path);
if (!item && PATHS_WITHOUT_ITEM.indexOf(path) === -1) {
// path not exists in our content structure