Skip to content
Snippets Groups Projects
Commit 54c69cc8 authored by Robert Anderson's avatar Robert Anderson
Browse files

Added Attributes button

parent cc26e70b
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,34 @@ function showAdminUserWindow() { ...@@ -82,6 +82,34 @@ function showAdminUserWindow() {
} }
}, },
'-', '-',
{
text:'Attributes',
tooltip:'User attributes',
iconCls:'logs',
handler: function() {
var selectedItem = AdminUserWindow.getComponent('gridpanel').getSelectionModel().getSelected();
// Check if we have selected item
if (selectedItem) {
// If so display window
showAdminUserAttributesWindow(selectedItem.data.ID);
} else {
AdminUserWindow.getEl().mask();
// Display error
Ext.Msg.show({
title: "Nothing selected",
msg: "No user selected",
icon: Ext.MessageBox.ERROR,
buttons: Ext.Msg.CANCEL,
modal: false,
fn: function() {
AdminUserWindow.getEl().unmask();
}
});
}
}
},
'-',
{ {
text:'Logs', text:'Logs',
tooltip:'User logs', tooltip:'User logs',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment