iptv/scripts/store/getters/group_title.js

13 lines
270 B
JavaScript
Raw Normal View History

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