mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Staging fixes (#9804)
* Fixed party member loading * Fixed quest details * Fixed party creating * Fixed challenge habit restore streak permissions * Fixed fetch recent messages for party * Adjusted category box placement for challenges * Fixed zindex for input on group * Changed reset streak restriction and allowed for adjust streak
This commit is contained in:
@@ -124,7 +124,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.category-box {
|
.category-box {
|
||||||
top: -120px !important;
|
top: 20em !important;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -539,7 +539,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.isParty) {
|
if (this.isParty) {
|
||||||
await this.$store.dispatch('party:getParty');
|
await this.$store.dispatch('party:getParty', true);
|
||||||
this.group = this.$store.state.party.data;
|
this.group = this.$store.state.party.data;
|
||||||
this.checkForAchievements();
|
this.checkForAchievements();
|
||||||
} else {
|
} else {
|
||||||
@@ -599,10 +599,14 @@ export default {
|
|||||||
if (this.isParty) {
|
if (this.isParty) {
|
||||||
data.type = 'party';
|
data.type = 'party';
|
||||||
Analytics.updateUser({partySize: null, partyID: null});
|
Analytics.updateUser({partySize: null, partyID: null});
|
||||||
this.$store.state.party.members = [];
|
this.$store.state.partyMembers = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.$store.dispatch('guilds:leave', data);
|
await this.$store.dispatch('guilds:leave', data);
|
||||||
|
|
||||||
|
if (this.isParty) {
|
||||||
|
this.$router.push({name: 'tasks'});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
upgradeGroup () {
|
upgradeGroup () {
|
||||||
this.$store.state.upgradingGroup = this.group;
|
this.$store.state.upgradingGroup = this.group;
|
||||||
|
|||||||
@@ -107,6 +107,10 @@
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import '~client/assets/scss/colors.scss';
|
@import '~client/assets/scss/colors.scss';
|
||||||
|
|
||||||
|
.custom-control-input {
|
||||||
|
z-index: 1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.svg-icon {
|
.svg-icon {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'client/libs/store';
|
import { mapState, mapGetters } from 'client/libs/store';
|
||||||
import quests from 'common/script/content/quests';
|
import quests from 'common/script/content/quests';
|
||||||
|
|
||||||
import copyIcon from 'assets/svg/copy.svg';
|
import copyIcon from 'assets/svg/copy.svg';
|
||||||
@@ -173,7 +173,9 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
user: 'user.data',
|
user: 'user.data',
|
||||||
partyMembers: 'partyMembers.data',
|
}),
|
||||||
|
...mapGetters({
|
||||||
|
partyMembers: 'party:members',
|
||||||
}),
|
}),
|
||||||
questData () {
|
questData () {
|
||||||
return quests.quests[this.group.quest.key];
|
return quests.quests[this.group.quest.key];
|
||||||
|
|||||||
@@ -125,16 +125,14 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
expandedMember: null,
|
expandedMember: null,
|
||||||
|
|
||||||
currentWidth: 0,
|
currentWidth: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
user: 'user:data',
|
user: 'user:data',
|
||||||
partyMembers: 'partyMembers',
|
partyMembers: 'party:members',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
showHeader () {
|
showHeader () {
|
||||||
if (this.$store.state.hideHeader) return false;
|
if (this.$store.state.hideHeader) return false;
|
||||||
return true;
|
return true;
|
||||||
@@ -176,8 +174,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created () {
|
async created () {
|
||||||
if (this.user.party && this.user.party._id) this.getPartyMembers();
|
if (this.user.party && this.user.party._id) {
|
||||||
|
await this.getPartyMembers(true);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -151,7 +151,7 @@
|
|||||||
.option(v-if="task.type === 'habit'")
|
.option(v-if="task.type === 'habit'")
|
||||||
.form-group
|
.form-group
|
||||||
label(v-once) {{ $t('resetStreak') }}
|
label(v-once) {{ $t('resetStreak') }}
|
||||||
b-dropdown.inline-dropdown(:text="$t(task.frequency)")
|
b-dropdown.inline-dropdown(:text="$t(task.frequency)", :disabled='challengeAccessRequired')
|
||||||
b-dropdown-item(v-for="frequency in ['daily', 'weekly', 'monthly']", :key="frequency", @click="task.frequency = frequency", :class="{active: task.frequency === frequency}")
|
b-dropdown-item(v-for="frequency in ['daily', 'weekly', 'monthly']", :key="frequency", @click="task.frequency = frequency", :class="{active: task.frequency === frequency}")
|
||||||
| {{ $t(frequency) }}
|
| {{ $t(frequency) }}
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ export async function leave (store, payload) {
|
|||||||
store.state.myGuilds.splice(guildIndex, 1);
|
store.state.myGuilds.splice(guildIndex, 1);
|
||||||
} else if (payload.type === 'party') {
|
} else if (payload.type === 'party') {
|
||||||
store.state.user.data.party._id = null;
|
store.state.user.data.party._id = null;
|
||||||
store.state.party = {};
|
store.state.party.data = {};
|
||||||
|
store.state.party.status = 'NOT_LOADED';
|
||||||
}
|
}
|
||||||
|
|
||||||
return response.data.data;
|
return response.data.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user