mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
cleaned up qualityprofile response format.
This commit is contained in:
parent
bdf86aa4ba
commit
3c53e6009d
8 changed files with 45 additions and 22 deletions
|
@ -83,6 +83,8 @@ ul.messenger.messenger-fixed.messenger-on-top.messenger-on-left, ul.messenger.me
|
|||
ul.messenger.messenger-fixed.messenger-on-right, ul.messenger.messenger-fixed.messenger-on-left {
|
||||
width: auto;
|
||||
min-width: 350px;
|
||||
max-width: 800px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
/* line 69, ../../src/sass/messenger.sass */
|
||||
ul.messenger.messenger-fixed.messenger-on-right .messenger-actions, ul.messenger.messenger-fixed.messenger-on-left .messenger-actions {
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
define(['app', 'Quality/QualitySizeModel'], function () {
|
||||
NzbDrone.Quality.QualitySizeCollection = Backbone.Collection.extend({
|
||||
model: NzbDrone.Quality.QualitySizeModel,
|
||||
url : NzbDrone.Constants.ApiRoot + '/qualitysizes'
|
||||
url : NzbDrone.Constants.ApiRoot + '/qualitysize'
|
||||
});
|
||||
});
|
||||
|
|
|
@ -2,16 +2,6 @@
|
|||
define(['app'], function () {
|
||||
NzbDrone.Quality.QualityProfileModel = Backbone.DeepModel.extend({
|
||||
|
||||
mutators: {
|
||||
allowed: function () {
|
||||
return _.where(this.get('qualities'), { allowed: true });
|
||||
},
|
||||
|
||||
cutoffName: function () {
|
||||
return _.findWhere(this.get('qualities'), { id: this.get('cutoff') }).name;
|
||||
}
|
||||
},
|
||||
|
||||
defaults: {
|
||||
id : null,
|
||||
name : '',
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<td name="name"></td>
|
||||
<td name="onGrab"></td>
|
||||
<td name="onDownload"></td>
|
||||
<td name="cutoffName"></td>
|
||||
<td name="cutoff.name"></td>
|
||||
<td>
|
||||
<i class="icon-cog x-edit" title="Edit"></i>
|
||||
<i class="icon-remove x-delete" title="Delete"></i>
|
||||
</td>
|
||||
</td>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<td name="name"></td>
|
||||
<td>
|
||||
{{#each allowed}}
|
||||
{{name}} |
|
||||
{{name}} |
|
||||
{{/each}}
|
||||
</td>
|
||||
<td name="cutoffName"></td>
|
||||
<td name="cutoff.name"></td>
|
||||
<td>
|
||||
<i class="icon-cog x-edit" title="Edit Series"></i>
|
||||
| Delete
|
||||
</td>
|
||||
</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue