mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
QualityProfile added to series table
This commit is contained in:
parent
fe48fd9fe9
commit
135cf3ce17
2 changed files with 40 additions and 4 deletions
24
UI/Cells/QualityProfileCell.js
Normal file
24
UI/Cells/QualityProfileCell.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backgrid',
|
||||
'Quality/QualityProfileCollection'
|
||||
], function (Backgrid, QualityProfileCollection) {
|
||||
return Backgrid.Cell.extend({
|
||||
className: 'quality-profile-cell',
|
||||
|
||||
render: function () {
|
||||
|
||||
this.$el.empty();
|
||||
var qualityProfileId = this.model.get(this.column.get('name'));
|
||||
|
||||
var profile = _.findWhere(QualityProfileCollection.models, { id: qualityProfileId });
|
||||
|
||||
if (profile) {
|
||||
this.$el.html(profile.get('name'));
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue