iptv/scripts/store/getters/group_title.js

14 lines
258 B
JavaScript
Raw Normal View History

2021-12-12 05:11:50 +01:00
module.exports = function () {
2022-02-11 17:56:11 +01:00
if (this.group_title) return this.group_title
if (this.categories.length) {
return this.categories
2022-02-12 00:13:28 +01:00
.filter(c => c)
2022-02-11 17:56:11 +01:00
.map(category => category.name)
.sort()
.join(';')
}
return 'Undefined'
2021-12-12 05:11:50 +01:00
}