mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
parent
8a3db99811
commit
cc01608f0a
src/UI/ManualImport
5
src/UI/ManualImport/ErrorView.js
Normal file
5
src/UI/ManualImport/ErrorView.js
Normal file
@ -0,0 +1,5 @@
|
||||
var Marionette = require('marionette');
|
||||
|
||||
module.exports = Marionette.CompositeView.extend({
|
||||
template : 'ManualImport/ErrorViewTemplate'
|
||||
});
|
1
src/UI/ManualImport/ErrorViewTemplate.hbs
Normal file
1
src/UI/ManualImport/ErrorViewTemplate.hbs
Normal file
@ -0,0 +1 @@
|
||||
Unable to load files for manual import. Check logs for more details.
|
@ -4,6 +4,7 @@ var Marionette = require('marionette');
|
||||
var Backgrid = require('backgrid');
|
||||
var CommandController = require('../Commands/CommandController');
|
||||
var EmptyView = require('./EmptyView');
|
||||
var ErrorView = require('./ErrorView');
|
||||
var SelectFolderView = require('./Folder/SelectFolderView');
|
||||
var LoadingView = require('../Shared/LoadingView');
|
||||
var ManualImportRow = require('./ManualImportRow');
|
||||
@ -122,8 +123,11 @@ module.exports = Marionette.Layout.extend({
|
||||
},
|
||||
|
||||
_loadCollection : function () {
|
||||
var self = this;
|
||||
this.manualImportCollection = new ManualImportCollection({ folder: this.folder, downloadId: this.downloadId });
|
||||
this.manualImportCollection.fetch();
|
||||
this.manualImportCollection.fetch().fail(function () {
|
||||
self.workspace.show(new ErrorView());
|
||||
});
|
||||
|
||||
this.listenTo(this.manualImportCollection, 'sync', this._showTable);
|
||||
this.listenTo(this.manualImportCollection, 'backgrid:selected', this._updateButtons);
|
||||
|
Loading…
Reference in New Issue
Block a user