From 1fd909cff6f0d4a1025e7b0d2fd5ef792e4446d1 Mon Sep 17 00:00:00 2001 From: Tim Turner Date: Sat, 28 Jan 2017 13:27:54 -0500 Subject: [PATCH] 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 --- src/NzbDrone.Core/NetImport/StevenLu/StevenLuImport.cs | 2 +- src/UI/AddMovies/List/AddFromListView.js | 3 +++ src/UI/Settings/NetImport/Add/NetImportSchemaModal.js | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/NetImport/StevenLu/StevenLuImport.cs b/src/NzbDrone.Core/NetImport/StevenLu/StevenLuImport.cs index 1f3b76039..95c1d9b9e 100644 --- a/src/NzbDrone.Core/NetImport/StevenLu/StevenLuImport.cs +++ b/src/NzbDrone.Core/NetImport/StevenLu/StevenLuImport.cs @@ -15,7 +15,7 @@ namespace NzbDrone.Core.NetImport.StevenLu { public class StevenLuImport : HttpNetImportBase { - public override string Name => "Popular movies from StevenLu"; + public override string Name => "StevenLu"; public override bool Enabled => true; public override bool EnableAuto => true; diff --git a/src/UI/AddMovies/List/AddFromListView.js b/src/UI/AddMovies/List/AddFromListView.js index d2605c74f..335380f94 100644 --- a/src/UI/AddMovies/List/AddFromListView.js +++ b/src/UI/AddMovies/List/AddFromListView.js @@ -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(); } }, diff --git a/src/UI/Settings/NetImport/Add/NetImportSchemaModal.js b/src/UI/Settings/NetImport/Add/NetImportSchemaModal.js index bd75e704c..42423ef18 100644 --- a/src/UI/Settings/NetImport/Add/NetImportSchemaModal.js +++ b/src/UI/Settings/NetImport/Add/NetImportSchemaModal.js @@ -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 }; });