1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-23 12:52:31 +03:00

Rename of method in Categories component

This commit is contained in:
zeot 2018-09-22 15:01:30 +03:00
parent fc85284f3d
commit 870f03b227

View File

@ -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 {