Files
iptv/scripts/store/getters/group_title.js

13 lines
270 B
JavaScript
Raw Normal View History

2021-12-12 07:11:50 +03:00
module.exports = function () {
2022-02-07 00:04:56 +03:00
if (this.group_title !== undefined) return this.group_title
2021-12-12 07:11:50 +03:00
2022-02-07 01:22:20 +03:00
if (Array.isArray(this.categories) && this.categories.length) {
2021-12-12 07:11:50 +03:00
return this.categories
.map(i => i.name)
.sort()
.join(';')
}
2022-02-07 01:22:20 +03:00
return 'Undefined'
2021-12-12 07:11:50 +03:00
}