1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 02:07:41 +00:00

Delete logs/log files won't blow up

This commit is contained in:
Mark McDowall 2013-11-19 18:00:06 -08:00
parent fb4e9fed85
commit a01f2dd862
2 changed files with 9 additions and 2 deletions

View file

@ -143,7 +143,11 @@ define(
_refreshLogs: function (buttonContext) {
this.contents.close();
var promise = this.collection.fetch();
//Would be nice to spin the icon on the refresh button
if (buttonContext) {
buttonContext.ui.icon.spinForPromise(promise);
}
},
_commandComplete: function (options) {

View file

@ -120,7 +120,10 @@ define(
_refreshLogs: function (buttonContext) {
this.collection.state.currentPage = 1;
var promise = this.collection.fetch({ reset: true });
if (buttonContext) {
buttonContext.ui.icon.spinForPromise(promise);
}
},
_commandComplete: function (options) {