mirror of
https://github.com/Readarr/Readarr
synced 2025-12-31 04:36:15 +01:00
19 lines
519 B
JavaScript
19 lines
519 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'marionette',
|
|
'Commands/CommandController'
|
|
], function (Marionette, CommandController) {
|
|
return Marionette.ItemView.extend({
|
|
template: 'System/Update/UpdateItemViewTemplate',
|
|
|
|
events: {
|
|
'click .x-install-update': '_installUpdate'
|
|
},
|
|
|
|
_installUpdate: function () {
|
|
CommandController.Execute('installUpdate', { updatePackage: this.model.toJSON() });
|
|
}
|
|
});
|
|
});
|