Create scripts/store/getters
This commit is contained in:
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
|
||||
}
|
Reference in New Issue
Block a user