1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-03-13 07:23:14 +00:00
Lidarr/src/UI/Cells/EpisodeFilePathCell.js

19 lines
534 B
JavaScript
Raw Normal View History

var reqres = require('../reqres');
var NzbDroneCell = require('./NzbDroneCell');
module.exports = NzbDroneCell.extend({
className : 'episode-file-path-cell',
render : function() {
this.$el.empty();
if (reqres.hasHandler(reqres.Requests.GetEpisodeFileById)) {
var episodeFile = reqres.request(reqres.Requests.GetEpisodeFileById, this.model.get('episodeFileId'));
this.$el.html(episodeFile.get('relativePath'));
}
this.delegateEvents();
return this;
}
});