Readarr/src/UI/Artist/Index/ArtistIndexItemView.js
Joseph Milazzo ef4da4ac9f Track Parsing Code (#10)
* We now have the ability to import local tracks into Lidarr. Switching to IDv3 tag reading over custom parsing for local tracks.

* Stable code for track refresh.

* RefreshArtist and RescanArtist events are working correctly. Need to add potential rejection decisions in future.

* Implemented code comments

* PR comments and fixing some odd db bugs.

* Fix some conflicts after Unit Test PR Merge

Fix some conflicts after Unit Test PR Merge

* Track/Album Add and Update Fixes

Track/Album Add and Update Fixes

* Fixed an issue with trackimport looking up trackId instead of artistId

* Add Handle to TrackService for TrackAddedEvent

Add Handle to TrackService for TrackAddedEvent

* Update Quality Regex, Store BitRateMode in TrackFile

Update Quality Regex, Store BitRateMode in TrackFile
2017-07-03 13:39:06 -05:00

35 lines
No EOL
910 B
JavaScript

var vent = require('vent');
var Marionette = require('marionette');
var CommandController = require('../../Commands/CommandController');
module.exports = Marionette.ItemView.extend({
ui : {
refresh : '.x-refresh'
},
events : {
'click .x-edit' : '_editArtist',
'click .x-refresh' : '_refreshArtist'
},
onRender : function() {
CommandController.bindToCommand({
element : this.ui.refresh,
command : {
name : 'refreshArtist',
artistId : this.model.get('id')
}
});
},
_editArtist : function() {
vent.trigger(vent.Commands.EditArtistCommand, { artist : this.model });
},
_refreshArtist : function() {
CommandController.Execute('refreshArtist', {
name : 'refreshArtist',
artistId : this.model.id
});
}
});