mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
UI dependency graph cleanup
This commit is contained in:
@@ -2,9 +2,8 @@
|
||||
|
||||
define(
|
||||
[
|
||||
'app',
|
||||
'marionette'
|
||||
], function (App, Marionette) {
|
||||
], function (Marionette) {
|
||||
return Marionette.ItemView.extend({
|
||||
template: 'System/Logs/Files/ContentsViewTemplate'
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'app',
|
||||
'vent',
|
||||
'marionette',
|
||||
'backgrid',
|
||||
'System/Logs/Files/FilenameCell',
|
||||
@@ -13,7 +13,7 @@ define(
|
||||
'System/Logs/Files/ContentsModel',
|
||||
'Shared/Toolbar/ToolbarLayout',
|
||||
'Shared/LoadingView'
|
||||
], function (App,
|
||||
], function (vent,
|
||||
Marionette,
|
||||
Backgrid,
|
||||
FilenameCell,
|
||||
@@ -57,11 +57,12 @@ define(
|
||||
initialize: function () {
|
||||
this.collection = new LogFileCollection();
|
||||
|
||||
App.vent.on(App.Commands.ShowLogFile, this._fetchLogFileContents, this);
|
||||
App.vent.on(App.Events.CommandComplete, this._commandComplete, this);
|
||||
vent.on(vent.Commands.ShowLogFile, this._fetchLogFileContents, this);
|
||||
vent.on(vent.Events.CommandComplete, this._commandComplete, this);
|
||||
this.listenTo(this.collection, 'sync', this._collectionSynced);
|
||||
|
||||
this.collection.fetch();
|
||||
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'app',
|
||||
'vent',
|
||||
'backgrid'
|
||||
], function (App, Backgrid) {
|
||||
], function (vent, Backgrid) {
|
||||
|
||||
return Backgrid.Row.extend({
|
||||
className: 'log-file-row',
|
||||
@@ -13,7 +13,7 @@ define(
|
||||
},
|
||||
|
||||
_showContents: function () {
|
||||
App.vent.trigger(App.Commands.ShowLogFile, { model: this.model });
|
||||
vent.trigger(vent.Commands.ShowLogFile, { model: this.model });
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user