}).show();
},
+ setPassword: function() {
+ let me = this;
+ let view = me.getView();
+ let selection = view.getSelection();
+
+ if (selection.length < 1) return;
+
+ Ext.create('PBS.window.UserPassword', {
+ url: '/api2/extjs/access/users/' + selection[0].data.userid,
+ }).show();
+ },
+
renderUsername: function(userid) {
return Ext.String.htmlEncode(userid.match(/^(.+)@([^@]+)$/)[1]);
},
handler: 'editUser',
disabled: true,
},
+ {
+ xtype: 'proxmoxButton',
+ text: gettext('Password'),
+ handler: 'setPassword',
+ disabled: true,
+ },
{
xtype: 'proxmoxStdRemoveButton',
baseurl: '/access/users/',