mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
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
This commit is contained in:
parent
7ca53d1073
commit
1fd909cff6
3 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue