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
13
scripts/store/getters/title.js
Normal file
13
scripts/store/getters/title.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
module.exports = function () {
|
||||
let title = this.name
|
||||
|
||||
if (this.resolution.height) {
|
||||
title += ` (${this.resolution.height}p)`
|
||||
}
|
||||
|
||||
if (this.status.label) {
|
||||
title += ` [${this.status.label}]`
|
||||
}
|
||||
|
||||
return title
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue