mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Fixed some UI issues
Fixed: Add folder won't show loading when there aren't any folders
This commit is contained in:
@@ -37,7 +37,10 @@ define(
|
|||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
QualityProfileCollection.fetch();
|
QualityProfileCollection.fetch();
|
||||||
RootFolderCollection.fetch();
|
RootFolderCollection.fetch()
|
||||||
|
.done(function () {
|
||||||
|
RootFolderCollection.synced = true;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ define(
|
|||||||
onRender: function () {
|
onRender: function () {
|
||||||
this.currentDirs.show(new LoadingView());
|
this.currentDirs.show(new LoadingView());
|
||||||
|
|
||||||
if (RootFolderCollection.any()) {
|
if (RootFolderCollection.synced) {
|
||||||
this._showCurrentDirs();
|
this._showCurrentDirs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ define(
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
CommandCollection.bind('add sync', function () {
|
CommandCollection.bind('sync', function () {
|
||||||
var command = CommandCollection.findCommand(options.command);
|
var command = CommandCollection.findCommand(options.command);
|
||||||
if (command) {
|
if (command) {
|
||||||
self._bindToCommandModel.call(self, command, options);
|
self._bindToCommandModel.call(self, command, options);
|
||||||
|
|||||||
Reference in New Issue
Block a user