New client sept 6 (#9020)

* Added flagging to show to admins

* Fixed filters in my guilds

* Fixed login incentives style

* Added inital rage bar

* Added categoires to get group

* Updated profile stats page

* Added stat allocation

* Updated tests to include categoires

* Fixed lint issue

* Added another lint fix
This commit is contained in:
Keith Holliday
2017-09-06 17:28:52 -06:00
committed by GitHub
parent fe8a44b8c4
commit adeee244e3
14 changed files with 442 additions and 139 deletions

View File

@@ -117,6 +117,11 @@ export default {
this.queryFilters.search = eventData.searchTerm;
let guilds = await this.$store.dispatch('guilds:getPublicGuilds', this.queryFilters);
guilds.forEach((guild) => {
guild.categorySlugs = guild.categories.map(cat => {
return cat.slug;
});
});
this.guilds = guilds;
},
async updateFilters (eventData) {
@@ -147,7 +152,6 @@ export default {
this.queryFilters.leader = true;
}
// Size filters
if (eventData.guildSize && eventData.guildSize.indexOf('gold_tier') !== -1) {
this.queryFilters.minMemberCount = 1000;
@@ -165,6 +169,11 @@ export default {
}
let guilds = await this.$store.dispatch('guilds:getPublicGuilds', this.queryFilters);
guilds.forEach((guild) => {
guild.categorySlugs = guild.categories.map(cat => {
return cat.slug;
});
});
this.guilds = guilds;
},
async fetchGuilds () {
@@ -177,6 +186,11 @@ export default {
let guilds = await this.$store.dispatch('guilds:getPublicGuilds', this.queryFilters);
if (guilds.length === 0) this.hasLoadedAllGuilds = true;
guilds.forEach((guild) => {
guild.categorySlugs = guild.categories.map(cat => {
return cat.slug;
});
});
this.guilds.push(...guilds);
this.lastPageLoaded++;