mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
[WIP] shops + market gear api (#8980)
* lock other classes gear * fix avatar in equip-gear-modal * fix seasonal shop * seasonal : new gear type order * fix pin gear (and get new gear on buying) * API: /shops/market-gear - refactoring pinnedGearUtils - move _isPinned to common/libs * use shops.getMarketGearCategories to list the marketGear * use shops.getMarketCategories instead of API-call * mark gear reward items as locked * purchase time-travelers stuff + update view + use method instead of http-api + add missing mammoth shop image * Time Travelers Shop: open/closed state * time travelers: show gear preview + hide sidebar if closed * update resized images * fix lint
This commit is contained in:
@@ -562,7 +562,7 @@ import hairIcon from 'assets/svg/hair.svg';
|
||||
import backgroundsIcon from 'assets/svg/backgrounds.svg';
|
||||
import gem from 'assets/svg/gem.svg';
|
||||
import pin from 'assets/svg/pin.svg';
|
||||
import _isPinned from './shops/_isPinned';
|
||||
import { isPinned } from 'common/script/ops/pinnedGearUtils';
|
||||
|
||||
|
||||
export default {
|
||||
@@ -744,7 +744,7 @@ export default {
|
||||
return backgroundClass;
|
||||
},
|
||||
isBackgroundPinned (bg) {
|
||||
return _isPinned(this.user, bg);
|
||||
return isPinned(this.user, bg);
|
||||
},
|
||||
togglePinned (bg) {
|
||||
if (!this.$store.dispatch('user:togglePinnedItem', {type: bg.pinType, path: bg.path})) {
|
||||
|
||||
Reference in New Issue
Block a user