Buy gems with gold instead of money from the header bar.

This commit is contained in:
Adrian Winterstein 2024-09-28 16:23:05 +02:00
parent bcb6494f90
commit 87ae4aa243
No known key found for this signature in database
GPG key ID: EDBA4B9F8D8E37AE

View file

@ -784,6 +784,8 @@ body.modal-open #habitica-menu {
</style>
<script>
import getItemInfo from '@/../../common/script/libs/getItemInfo';
import { mapState, mapGetters } from '@/libs/store';
import { goToModForm } from '@/libs/modform';
@ -893,7 +895,7 @@ export default {
this.$root.$emit('bv::show::modal', 'create-party-modal');
},
showBuyGemsModal () {
this.$root.$emit('bv::show::modal', 'buy-gems', { alreadyTracked: true });
this.$root.$emit('buyModal::showItem', getItemInfo(this.user, 'gem'));
},
dropdownDesktop (hover) {
if (this.isDesktop() && hover.target.classList.contains('droppable')) {