mirror of
https://github.com/aelve/guide.git
synced 2024-11-23 12:15:06 +03:00
Merge branch 'vue' of https://github.com/aelve/guide into vue
This commit is contained in:
commit
b83bccf336
@ -120,11 +120,11 @@ export default class Categories extends Vue {
|
|||||||
get groups() {
|
get groups() {
|
||||||
const groupedByGroupName: object = _groupBy(this.categories, 'group')
|
const groupedByGroupName: object = _groupBy(this.categories, 'group')
|
||||||
Object.entries(groupedByGroupName).forEach(([key, value]: [string, ICategory[]]) => {
|
Object.entries(groupedByGroupName).forEach(([key, value]: [string, ICategory[]]) => {
|
||||||
groupedByGroupName[key] = this.groupByCategoriesByStatus(value)
|
groupedByGroupName[key] = this.groupCategoriesByStatus(value)
|
||||||
})
|
})
|
||||||
return groupedByGroupName
|
return groupedByGroupName
|
||||||
}
|
}
|
||||||
groupByCategoriesByStatus(categories: ICategory[]): object {
|
groupCategoriesByStatus(categories: ICategory[]): object {
|
||||||
return _groupBy(categories, 'status')
|
return _groupBy(categories, 'status')
|
||||||
}
|
}
|
||||||
getCategoryUrl(category: ICategory): string {
|
getCategoryUrl(category: ICategory): string {
|
||||||
|
Loading…
Reference in New Issue
Block a user