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