Net Import UI Updates

- Change name to "StevenLu" to fix
- Hide header on New List modal
- Show "Import Selected" only after a list has been fetched
Tim Turner 8 years ago
parent 7ca53d1073
commit 1fd909cff6

@ -15,7 +15,7 @@ namespace NzbDrone.Core.NetImport.StevenLu
{
public class StevenLuImport : HttpNetImportBase<StevenLuSettings>
{
public override string Name => "Popular movies from StevenLu";
public override string Name => "StevenLu";
public override bool Enabled => true;
public override bool EnableAuto => true;

@ -102,10 +102,12 @@ module.exports = Marionette.Layout.extend({
onRender : function() {
var self = this;
this.ui.importSelected.hide();
},
onShow : function() {
this.ui.moviesSearch.focus();
},
search : function(options) {
@ -232,6 +234,7 @@ module.exports = Marionette.Layout.extend({
className : 'table table-hover'
});
this.fetchResult.show(this.importGrid);
this.ui.importSelected.show();
}
},

@ -19,9 +19,10 @@ module.exports = {
var groups = schemaCollection.groupBy(function(model, iterator) {
return model.get('protocol');
});
//key is "undefined", which is being placed in the header
var modelCollection = _.map(groups, function(values, key, list) {
return {
"header" : key,
//"header" : key,
collection : values
};
});

Loading…
Cancel
Save