mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 11:46:23 +00:00
Buy gems with gold instead of money from the header bar.
This commit is contained in:
parent
bcb6494f90
commit
87ae4aa243
1 changed files with 3 additions and 1 deletions
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue