* Trigger confirmation modal for quests that have a currency of gems
https://github.com/HabitRPG/habitica/issues/11244
* Trigger purchase confirmation dialog for gold-purchasable quests
* Refactor to use confirmPurchase method
* Removed unnecessary sub-heading.
* Corrected the filter in the Market.
Now viewOptions keeps additional info about text to be in filter.
Categories array is no longer passed to filter component.
* Add restart after rebirth
Page will be reloaded after purchasing "Orb of Rebirth"
* Remove restart after closing achievement
This reload is not needed, as the page now reloads immediately after purchasing "Orb of Rebirth"
* Move rebirth notification to modal
* Delete references to rebirth notification
* fix(purchasing): more number validation
* test(purchasing): add error cases
Also refactor NaN check and create client mixin
* fix(purchasing): cover "purchase" cases
* Several deps set to "optional" in lock file
This was done automatically when running `npm i` on Windows.
Node v10.15.2
NPM 6.4.1
* Begin working on issue #10687
Key files to look into:
- website/client/components/inventory/item.vue
- website/client/components/shops/market/sellModal.vue
File notes for me:
item.vue: provides wrapper for displaying item data.
sellModel.vue: for displaying items player intends to sell
- lines 10-21: check `item` computed property and load `item` component
- lines 151-153: ask how return line is evaluated to an `item`
The last one could be important to figuring out this caching issue.
Since the property is computed, it's possible that line is evaluating to
a truthy value that Vue is seeing as unchanged, even if the actual
`item` object is different each time.
* Pick up from sellModal.vue:155
This is where the item context seems to be set. The Vue dev tools
indicate that the `<item>` component is updating. It's only the `item`
reference inside of the `<sellModal>` component that isn't updating.
Issue #10687
* Remove (v-once) directive
This was preventing data referenced within nested elements from
updating.
Issue #10687
* Revert package-lock.json to "develop" version
This removes the "optional" settings that were automatically added by NPM to a handful of dependencies while working on PR #11044.
* Attempt to rerun tests
The most recent change shouldn't have caused tests to fail.
* sort equipment by stat descending in Market (issue #10728)
* fix sorting equipment by PER in Market (new issue?)
* move filter logic into method when sorting equipment in Market
* consolidate sorting in sortedGearItems() into one _orderBy call
* removing the 24px top margin on .modal-dialog .title so boss HP and difficulty line up
* stop overloading title so much and use a properly-scoped style
* removing unnecessary temp vars
* using SCSS color vars as per CR
* using relative font size measurements instead of absolute pixels, and adding popover override CSS to not break quest shop & invite notifications
* removing redundant font declarations
* added responsive scss to allow modals to respond to changing window size
* Remove unecessary space
* moved scss around
* remove unnecessary space
* Adjust left and right panels to be more responsive + moved css for buyQuestModal into its respective vue file (startQuestModal css wasn't working in its vue file... I can't figure out why)
* removed important to get rid of extra scrollbar
* moved css all to one file
Whenever one is hovering an item from another user, the bonuses of these
items are shown for the own user. So for example if you're a mage and
view a Royal Magus Robe of another mage, the class bonus is 6.
However if you're a warrior, the class bonus displays as 0 because the
attributes grid is always using the stats for the own user even if
viewing equipment of a different user.
I've fixed this by moving the user object to the properties in
attributesGrid and passing the current user from every other Vue file
that's using attributesGrid.
Not sure whether this is the right approach, as I'm no expert in Vue.js
but some testing with the client now shows the correct values.
Signed-off-by: aszlig <aszlig@nix.build>
isBuyingDependentOnPrevious () method checks if item.key of quest is in a list of quests whose unlock condition is not dependent on the completition of previous quest.
* update antidote display and functionality - fixes#9758 and #10160
update antidote display and functionality - fixes#9758 and #10160
update antidote display and functionality - fixes#9758 and #10160
update antidote display and functionality - fixes#9758 and #10160
* clean up / refactor
* prevent unpin of all items which don't have a pinType
* remove the double boolean casting / fix lint
* fix: fix quest shop to not use string addition when buying quests
fixes#10115
* Fixing quest purchase quantity interpretted as a string on the server side.
* Adjusting pull-request according to comments.
* Updating according to PR comments.
* Bring buy bg set button in line with title
* Make background sets pretty
* Add checkbox to filter backgrounds
* Review: replace background filter checkbox with toggle
* Remove dashed line from toggle-switch label
* Test: add comma to make es-lint happy
* Move toggle tooltip into toggle-switch template
* Make toggle-switch label optional
* Review: Remove toggle-switch margin