mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Commands return immediately and signalr is used to control the UI
This commit is contained in:
17
UI/Commands/CommandCollection.js
Normal file
17
UI/Commands/CommandCollection.js
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
'Commands/CommandModel',
|
||||
'Mixins/backbone.signalr.mixin'
|
||||
], function (Backbone, CommandModel) {
|
||||
|
||||
var CommandCollection = Backbone.Collection.extend({
|
||||
url : window.ApiRoot + '/command',
|
||||
model: CommandModel
|
||||
});
|
||||
|
||||
var collection = new CommandCollection().bindSignalR();
|
||||
|
||||
return collection;
|
||||
});
|
Reference in New Issue
Block a user