mirror of
https://github.com/Radarr/Radarr
synced 2025-02-27 00:23:19 +00:00
Add existing series shows a loading message
Fixed: Message to tell users series are being loaded from trakt
This commit is contained in:
parent
d703bc8dc5
commit
d51517d60c
5 changed files with 27 additions and 3 deletions
|
@ -20,3 +20,4 @@
|
||||||
<!--</div>-->
|
<!--</div>-->
|
||||||
</div>
|
</div>
|
||||||
<div id="add-series-workspace"/>
|
<div id="add-series-workspace"/>
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,6 @@ define(
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
this.searchResult.show(this.resultCollectionView);
|
|
||||||
this.ui.seriesSearch.focus();
|
this.ui.seriesSearch.focus();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,15 @@ define(
|
||||||
'AddSeries/Existing/UnmappedFolderCollection'
|
'AddSeries/Existing/UnmappedFolderCollection'
|
||||||
], function (Marionette, AddSeriesView, UnmappedFolderCollection) {
|
], function (Marionette, AddSeriesView, UnmappedFolderCollection) {
|
||||||
|
|
||||||
return Marionette.CollectionView.extend({
|
return Marionette.CompositeView.extend({
|
||||||
|
|
||||||
itemView: AddSeriesView,
|
itemView : AddSeriesView,
|
||||||
|
itemViewContainer: '.x-loading-folders',
|
||||||
|
template : 'AddSeries/Existing/AddExistingSeriesCollectionViewTemplate',
|
||||||
|
|
||||||
|
ui: {
|
||||||
|
loadingFolders: '.x-loading-folders'
|
||||||
|
},
|
||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
this.collection = new UnmappedFolderCollection();
|
this.collection = new UnmappedFolderCollection();
|
||||||
|
@ -19,6 +25,10 @@ define(
|
||||||
this._showAndSearch(0);
|
this._showAndSearch(0);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
appendHtml: function(collectionView, itemView, index){
|
||||||
|
collectionView.ui.loadingFolders.before(itemView.el);
|
||||||
|
},
|
||||||
|
|
||||||
_showAndSearch: function (index) {
|
_showAndSearch: function (index) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var model = this.collection.at(index);
|
var model = this.collection.at(index);
|
||||||
|
@ -35,6 +45,10 @@ define(
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
this.ui.loadingFolders.hide();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
itemViewOptions: {
|
itemViewOptions: {
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
<div class="x-existing-folders">
|
||||||
|
<div class="loading-folders x-loading-folders">
|
||||||
|
Loading search results from trakt for your series, this may take a few minutes.
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -104,6 +104,11 @@
|
||||||
width: 140px;
|
width: 140px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.loading-folders {
|
||||||
|
margin : 30px 0px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
li.add-new {
|
li.add-new {
|
||||||
|
|
Loading…
Reference in a new issue