mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 21:12:43 +02:00
Beginning of Add New Profile button
This commit is contained in:
@@ -72,5 +72,13 @@ QualityProfileCollectionView = Backbone.Marionette.CompositeView.extend({
|
||||
this.collection = new QualityProfileCollection();
|
||||
this.collection.fetch();
|
||||
this.collection.bind('reset', this.render);
|
||||
},
|
||||
events: {
|
||||
'click #add-profile': 'addProfile'
|
||||
},
|
||||
addProfile: function (e) {
|
||||
//Add new profile to collection
|
||||
this.collection.add(new QualityProfile());
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user