mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 13:25:13 +02:00
UI dependency graph cleanup
This commit is contained in:
28
src/UI/vent.js
Normal file
28
src/UI/vent.js
Normal file
@@ -0,0 +1,28 @@
|
||||
define(
|
||||
[
|
||||
'marionette',
|
||||
'backbone'
|
||||
], function (Marionette, Backbone) {
|
||||
'use strict';
|
||||
|
||||
var vent = new Backbone.Wreqr.EventAggregator();
|
||||
|
||||
vent.Events = {
|
||||
SeriesAdded : 'series:added',
|
||||
SeriesDeleted : 'series:deleted',
|
||||
SeasonRenamed : 'season:renamed',
|
||||
CommandComplete: 'command:complete'
|
||||
};
|
||||
|
||||
vent.Commands = {
|
||||
EditSeriesCommand : 'EditSeriesCommand',
|
||||
DeleteSeriesCommand: 'DeleteSeriesCommand',
|
||||
CloseModalCommand : 'CloseModalCommand',
|
||||
ShowEpisodeDetails : 'ShowEpisodeDetails',
|
||||
ShowHistoryDetails : 'ShowHistoryDetails',
|
||||
SaveSettings : 'saveSettings',
|
||||
ShowLogFile : 'showLogFile'
|
||||
};
|
||||
|
||||
return vent;
|
||||
});
|
Reference in New Issue
Block a user