mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-26 23:06:43 -04:00
12 lines
429 B
JavaScript
12 lines
429 B
JavaScript
var vent = require('../../vent');
|
|
var Marionette = require('marionette');
|
|
|
|
module.exports = Marionette.ItemView.extend({
|
|
template : 'Settings/Profile/DeleteProfileViewTemplate',
|
|
events : {"click .x-confirm-delete" : '_removeProfile'},
|
|
_removeProfile : function(){
|
|
this.model.destroy({wait : true}).done(function(){
|
|
vent.trigger(vent.Commands.CloseModalCommand);
|
|
});
|
|
}
|
|
}); |