mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Profiles
Indexes are created with the same uniqueness when copying a table New: Non-English episode support New: Renamed Quality Profiles to Profiles and made them more powerful New: Configurable wait time before grabbing a release to wait for a better quality
This commit is contained in:
parent
b72678a9ad
commit
74a38415cf
182 changed files with 2493 additions and 2433 deletions
18
src/UI/Profile/ProfileCollection.js
Normal file
18
src/UI/Profile/ProfileCollection.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
'Profile/ProfileModel'
|
||||
], function (Backbone, ProfileModel) {
|
||||
|
||||
var ProfileCollection = Backbone.Collection.extend({
|
||||
model: ProfileModel,
|
||||
url : window.NzbDrone.ApiRoot + '/profile'
|
||||
});
|
||||
|
||||
var profiles = new ProfileCollection();
|
||||
|
||||
profiles.fetch();
|
||||
|
||||
return profiles;
|
||||
});
|
14
src/UI/Profile/ProfileModel.js
Normal file
14
src/UI/Profile/ProfileModel.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone.deepmodel'
|
||||
], function (DeepModel) {
|
||||
return DeepModel.DeepModel.extend({
|
||||
defaults: {
|
||||
id : null,
|
||||
name : '',
|
||||
cutoff: null
|
||||
}
|
||||
});
|
||||
});
|
||||
|
5
src/UI/Profile/ProfileSelectionPartial.html
Normal file
5
src/UI/Profile/ProfileSelectionPartial.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<select class="col-md-2 form-control x-profile">
|
||||
{{#each this}}
|
||||
<option value="{{id}}">{{name}}</option>
|
||||
{{/each}}
|
||||
</select>
|
Loading…
Add table
Add a link
Reference in a new issue