mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 02:20:03 -04:00
Create scripts/store/getters
This commit is contained in:
parent
0e21288935
commit
21b8ce8731
8 changed files with 49 additions and 0 deletions
12
scripts/store/getters/group_title.js
Normal file
12
scripts/store/getters/group_title.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
module.exports = function () {
|
||||
if (this.group_title) return this.group_title
|
||||
|
||||
if (Array.isArray(this.categories)) {
|
||||
return this.categories
|
||||
.map(i => i.name)
|
||||
.sort()
|
||||
.join(';')
|
||||
}
|
||||
|
||||
return ''
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue