mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Hot fixes nov 15 (#9519)
* Added fortify sync. Removed multiple buy * Added yesterdaily check * Fixed checks for running yesterdailies
This commit is contained in:
@@ -373,8 +373,8 @@ export default {
|
||||
this.$store.state.isRunningYesterdailies = true;
|
||||
|
||||
if (!this.user.needsCron) {
|
||||
this.handleUserNotifications(this.user.notifications);
|
||||
this.scheduleNextCron();
|
||||
this.handleUserNotifications(this.user.notifications);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -415,8 +415,8 @@ export default {
|
||||
this.showLevelUpNotifications(this.user.stats.lvl);
|
||||
}
|
||||
|
||||
this.handleUserNotifications(this.user.notifications);
|
||||
this.scheduleNextCron();
|
||||
this.handleUserNotifications(this.user.notifications);
|
||||
},
|
||||
transferGroupNotification (notification) {
|
||||
this.$store.state.groupNotifications.push(notification);
|
||||
@@ -424,6 +424,8 @@ export default {
|
||||
async handleUserNotifications (after) {
|
||||
if (!after || after.length === 0 || !Array.isArray(after)) return;
|
||||
|
||||
if (this.$store.state.isRunningYesterdailies) return;
|
||||
|
||||
let notificationsToRead = [];
|
||||
let scoreTaskNotification = [];
|
||||
|
||||
|
||||
@@ -42,10 +42,10 @@
|
||||
)
|
||||
|
||||
.purchase-amount(:class="{'notEnough': !this.enoughCurrency(getPriceClass(), item.value * selectedAmountToBuy)}")
|
||||
.how-many-to-buy(v-if='item.purchaseType !== "gear"')
|
||||
.how-many-to-buy(v-if='["fortify", "gear"].indexOf(item.purchaseType) === -1')
|
||||
strong {{ $t('howManyToBuy') }}
|
||||
div(v-if='item.purchaseType !== "gear"')
|
||||
.box
|
||||
.box(v-if='["fortify", "gear"].indexOf(item.purchaseType) === -1')
|
||||
input(type='number', min='0', v-model='selectedAmountToBuy')
|
||||
span.svg-icon.inline.icon-32(aria-hidden="true", v-html="icons[getPriceClass()]")
|
||||
span.value(:class="getPriceClass()") {{ item.value }}
|
||||
|
||||
@@ -126,9 +126,13 @@ export async function genericPurchase (store, params) {
|
||||
await buyArmoire(store, params);
|
||||
return;
|
||||
case 'fortify': {
|
||||
let rerollResult = rerollOp(store.state.user.data);
|
||||
let rerollResult = rerollOp(store.state.user.data, store.state.tasks.data);
|
||||
|
||||
axios.post('/api/v3/user/reroll');
|
||||
await axios.post('/api/v3/user/reroll');
|
||||
await Promise.all([
|
||||
store.dispatch('user:fetch', {forceLoad: true}),
|
||||
store.dispatch('tasks:fetchUserTasks', {forceLoad: true}),
|
||||
]);
|
||||
|
||||
return rerollResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user