mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-03 19:08:20 -04:00
Fixed: Downloading log file asking for password when authentication is disabled
This commit is contained in:
@@ -6,7 +6,7 @@ define(
|
||||
], function (Backbone, StatusModel) {
|
||||
return Backbone.Model.extend({
|
||||
url: function () {
|
||||
return StatusModel.get('urlBase') + '/log/' + this.get('filename');
|
||||
return StatusModel.get('urlBase') + '/logfile/' + this.get('filename');
|
||||
},
|
||||
|
||||
parse: function (contents) {
|
||||
|
||||
@@ -10,7 +10,7 @@ define(
|
||||
|
||||
render: function () {
|
||||
this.$el.empty();
|
||||
this.$el.html('<a href="{0}/log/{1}" class="no-router" target="_blank">Download</a>'.format(StatusModel.get('urlBase'), this.cellValue));
|
||||
this.$el.html('<a href="{0}/logfile/{1}" class="no-router" target="_blank">Download</a>'.format(StatusModel.get('urlBase'), this.cellValue));
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ define(
|
||||
'System/Logs/Files/LogFileModel'
|
||||
], function (Backbone, LogFileModel) {
|
||||
return Backbone.Collection.extend({
|
||||
url : window.NzbDrone.ApiRoot + '/log/files',
|
||||
url : window.NzbDrone.ApiRoot + '/log/file',
|
||||
model: LogFileModel,
|
||||
|
||||
state: {
|
||||
|
||||
Reference in New Issue
Block a user