sep 21 fixes (#9060)

* remove `classSelected` on adding new pinned gear

* use show::modal on buyModal / selectMembersModal instead of v-if=item

* show::modal for buyQuestModal - fix bundles class

* fix buy potion

* fix open selectMembersModal (after changing to shop::modal)
This commit is contained in:
negue
2017-09-22 13:34:00 +02:00
committed by GitHub
parent f128f3d3cd
commit 6fcf739c89
10 changed files with 51 additions and 64 deletions

View File

@@ -45,14 +45,12 @@ function addPinnedGear (user, type, path) {
}
function addPinnedGearByClass (user) {
if (user.flags.classSelected) {
let newPinnedItems = selectGearToPin(user);
let newPinnedItems = selectGearToPin(user);
for (let item of newPinnedItems) {
let itemInfo = getItemInfo(user, 'marketGear', item);
for (let item of newPinnedItems) {
let itemInfo = getItemInfo(user, 'marketGear', item);
addPinnedGear(user, itemInfo.pinType, itemInfo.path);
}
addPinnedGear(user, itemInfo.pinType, itemInfo.path);
}
}
@@ -70,14 +68,12 @@ function removeItemByPath (user, path) {
}
function removePinnedGearByClass (user) {
if (user.flags.classSelected) {
let currentPinnedItems = selectGearToPin(user);
let currentPinnedItems = selectGearToPin(user);
for (let item of currentPinnedItems) {
let itemInfo = getItemInfo(user, 'marketGear', item);
for (let item of currentPinnedItems) {
let itemInfo = getItemInfo(user, 'marketGear', item);
removeItemByPath(user, itemInfo.path);
}
removeItemByPath(user, itemInfo.path);
}
}