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 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 Enabled => true;
|
||||||
public override bool EnableAuto => true;
|
public override bool EnableAuto => true;
|
||||||
|
|
||||||
|
|
|
@ -102,10 +102,12 @@ module.exports = Marionette.Layout.extend({
|
||||||
|
|
||||||
onRender : function() {
|
onRender : function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
this.ui.importSelected.hide();
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow : function() {
|
onShow : function() {
|
||||||
this.ui.moviesSearch.focus();
|
this.ui.moviesSearch.focus();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
search : function(options) {
|
search : function(options) {
|
||||||
|
@ -232,6 +234,7 @@ module.exports = Marionette.Layout.extend({
|
||||||
className : 'table table-hover'
|
className : 'table table-hover'
|
||||||
});
|
});
|
||||||
this.fetchResult.show(this.importGrid);
|
this.fetchResult.show(this.importGrid);
|
||||||
|
this.ui.importSelected.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -19,9 +19,10 @@ module.exports = {
|
||||||
var groups = schemaCollection.groupBy(function(model, iterator) {
|
var groups = schemaCollection.groupBy(function(model, iterator) {
|
||||||
return model.get('protocol');
|
return model.get('protocol');
|
||||||
});
|
});
|
||||||
|
//key is "undefined", which is being placed in the header
|
||||||
var modelCollection = _.map(groups, function(values, key, list) {
|
var modelCollection = _.map(groups, function(values, key, list) {
|
||||||
return {
|
return {
|
||||||
"header" : key,
|
//"header" : key,
|
||||||
collection : values
|
collection : values
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue