mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
added icons to add,remove and reload toolbars
This commit is contained in:
BIN
scm-webapp/src/main/webapp/resources/images/reload.gif
Normal file
BIN
scm-webapp/src/main/webapp/resources/images/reload.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
@@ -42,10 +42,10 @@ Sonia.group.Panel = Ext.extend(Sonia.rest.Panel, {
|
||||
initComponent: function(){
|
||||
var config = {
|
||||
tbar: [
|
||||
{xtype: 'tbbutton', text: this.addText, scope: this, handler: this.showAddForm},
|
||||
{xtype: 'tbbutton', id: 'groupRmButton', disabled: true, text: this.removeText, scope: this, handler: this.removeGroup},
|
||||
{xtype: 'tbbutton', text: this.addText, icon: this.addIcon, scope: this, handler: this.showAddForm},
|
||||
{xtype: 'tbbutton', id: 'groupRmButton', disabled: true, text: this.removeText, icon: this.removeIcon, scope: this, handler: this.removeGroup},
|
||||
'-',
|
||||
{xtype: 'tbbutton', text: this.reloadText, scope: this, handler: this.reload}
|
||||
{xtype: 'tbbutton', text: this.reloadText, icon: this.reloadIcon, scope: this, handler: this.reload}
|
||||
],
|
||||
items: [{
|
||||
id: 'groupGrid',
|
||||
|
||||
@@ -45,13 +45,13 @@ Sonia.repository.Panel = Ext.extend(Sonia.rest.Panel, {
|
||||
var toolbar = [];
|
||||
if ( admin ){
|
||||
toolbar.push(
|
||||
{xtype: 'tbbutton', text: this.addText, scope: this, handler: this.showAddForm}
|
||||
{xtype: 'tbbutton', text: this.addText, icon: this.addIcon, scope: this, handler: this.showAddForm}
|
||||
);
|
||||
}
|
||||
toolbar.push(
|
||||
{xtype: 'tbbutton', id: 'repoRmButton', disabled: true, text: this.removeText, scope: this, handler: this.removeRepository},
|
||||
{xtype: 'tbbutton', id: 'repoRmButton', disabled: true, text: this.removeText, icon: this.removeIcon, scope: this, handler: this.removeRepository},
|
||||
'-',
|
||||
{xtype: 'tbbutton', text: this.reloadText, scope: this, handler: this.reload}
|
||||
{xtype: 'tbbutton', text: this.reloadText, icon: this.reloadIcon, scope: this, handler: this.reload}
|
||||
);
|
||||
|
||||
var config = {
|
||||
|
||||
@@ -38,9 +38,9 @@ Sonia.rest.Panel = Ext.extend(Ext.Panel, {
|
||||
reloadText: 'Reload',
|
||||
|
||||
// icons
|
||||
addIcon: '',
|
||||
removeIcon: '',
|
||||
reloadIcon: '',
|
||||
addIcon: 'resources/images/add.gif',
|
||||
removeIcon: 'resources/images/delete.gif',
|
||||
reloadIcon: 'resources/images/reload.gif',
|
||||
|
||||
initComponent: function(){
|
||||
|
||||
|
||||
@@ -44,10 +44,10 @@ Sonia.user.Panel = Ext.extend(Sonia.rest.Panel, {
|
||||
var config = {
|
||||
bodyCssClass: 'x-panel-mc',
|
||||
tbar: [
|
||||
{xtype: 'tbbutton', text: this.addText, scope: this, handler: this.showAddPanel},
|
||||
{xtype: 'tbbutton', text: this.removeText, scope: this, handler: this.removeUser},
|
||||
{xtype: 'tbbutton', text: this.addText, icon: this.addIcon, scope: this, handler: this.showAddPanel},
|
||||
{xtype: 'tbbutton', text: this.removeText, icon: this.removeIcon, scope: this, handler: this.removeUser},
|
||||
'-',
|
||||
{xtype: 'tbbutton', text: this.reloadText, scope: this, handler: this.reload}
|
||||
{xtype: 'tbbutton', text: this.reloadText, icon: this.reloadIcon, scope: this, handler: this.reload}
|
||||
],
|
||||
items: [{
|
||||
id: 'userGrid',
|
||||
|
||||
Reference in New Issue
Block a user