mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Delete logs/log files won't blow up
This commit is contained in:
@@ -143,7 +143,11 @@ define(
|
|||||||
_refreshLogs: function (buttonContext) {
|
_refreshLogs: function (buttonContext) {
|
||||||
this.contents.close();
|
this.contents.close();
|
||||||
var promise = this.collection.fetch();
|
var promise = this.collection.fetch();
|
||||||
buttonContext.ui.icon.spinForPromise(promise);
|
|
||||||
|
//Would be nice to spin the icon on the refresh button
|
||||||
|
if (buttonContext) {
|
||||||
|
buttonContext.ui.icon.spinForPromise(promise);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_commandComplete: function (options) {
|
_commandComplete: function (options) {
|
||||||
|
@@ -120,7 +120,10 @@ define(
|
|||||||
_refreshLogs: function (buttonContext) {
|
_refreshLogs: function (buttonContext) {
|
||||||
this.collection.state.currentPage = 1;
|
this.collection.state.currentPage = 1;
|
||||||
var promise = this.collection.fetch({ reset: true });
|
var promise = this.collection.fetch({ reset: true });
|
||||||
buttonContext.ui.icon.spinForPromise(promise);
|
|
||||||
|
if (buttonContext) {
|
||||||
|
buttonContext.ui.icon.spinForPromise(promise);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_commandComplete: function (options) {
|
_commandComplete: function (options) {
|
||||||
|
Reference in New Issue
Block a user