mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
35 lines
935 B
JavaScript
35 lines
935 B
JavaScript
var AppLayout = require('../../AppLayout');
|
|
var Marionette = require('marionette');
|
|
var EditProfileView = require('./Edit/EditProfileLayout');
|
|
var AsModelBoundView = require('../../Mixins/AsModelBoundView');
|
|
require('./AllowedLabeler');
|
|
require('./LanguageLabel');
|
|
require('bootstrap');
|
|
|
|
var view = Marionette.ItemView.extend({
|
|
template : 'Settings/Profile/ProfileViewTemplate',
|
|
tagName : 'li',
|
|
|
|
ui : {
|
|
"progressbar" : '.progress .bar',
|
|
"deleteButton" : '.x-delete'
|
|
},
|
|
|
|
events : {
|
|
'click' : '_editProfile'
|
|
},
|
|
|
|
initialize : function() {
|
|
this.listenTo(this.model, 'sync', this.render);
|
|
},
|
|
|
|
_editProfile : function() {
|
|
var view = new EditProfileView({
|
|
model : this.model,
|
|
profileCollection : this.model.collection
|
|
});
|
|
AppLayout.modalRegion.show(view);
|
|
}
|
|
});
|
|
|
|
module.exports = AsModelBoundView.call(view); |