mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Quality Profiles move to cards
This commit is contained in:
@@ -6,34 +6,34 @@ define(
|
||||
'marionette',
|
||||
'Settings/Quality/Profile/EditQualityProfileView',
|
||||
'Settings/Quality/Profile/DeleteView',
|
||||
'Mixins/AsModelBoundView'
|
||||
'Mixins/AsModelBoundView',
|
||||
'Settings/Quality/Profile/AllowedLabeler'
|
||||
|
||||
], function (App, Marionette, EditProfileView, DeleteProfileView, AsModelBoundView) {
|
||||
|
||||
var view = Marionette.ItemView.extend({
|
||||
template: 'Settings/Quality/Profile/QualityProfileTemplate',
|
||||
tagName : 'tr',
|
||||
tagName : 'li',
|
||||
|
||||
ui: {
|
||||
'progressbar': '.progress .bar'
|
||||
},
|
||||
|
||||
events: {
|
||||
'click .x-edit' : 'edit',
|
||||
'click .x-remove': 'removeQuality'
|
||||
'click .x-edit' : '_editProfile',
|
||||
'click .x-delete': '_deleteProfile'
|
||||
},
|
||||
|
||||
edit: function () {
|
||||
_editProfile: function () {
|
||||
var view = new EditProfileView({ model: this.model});
|
||||
App.modalRegion.show(view);
|
||||
},
|
||||
|
||||
removeQuality: function () {
|
||||
_deleteProfile: function () {
|
||||
var view = new DeleteProfileView({ model: this.model });
|
||||
App.modalRegion.show(view);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return AsModelBoundView.call(view);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user