mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-29 11:05:44 +00:00
24 lines
654 B
JavaScript
24 lines
654 B
JavaScript
'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;
|
|
}
|
|
});
|
|
});
|