Use icons for save and cancel buttons

This commit is contained in:
Anton Tananaev 2016-11-05 00:09:04 +13:00
parent 0050bbc93c
commit 166237d0c1
10 changed files with 76 additions and 22 deletions

View File

@ -42,10 +42,16 @@ Ext.define('Traccar.view.AttributeAliasDialog', {
},
buttons: [{
text: Strings.sharedSave,
glyph: 'xf00c@FontAwesome',
tooltip: Strings.sharedSave,
tooltipType: 'title',
minWidth: 0,
handler: 'onSaveClick'
}, {
text: Strings.sharedCancel,
glyph: 'xf00d@FontAwesome',
tooltip: Strings.sharedCancel,
tooltipType: 'title',
minWidth: 0,
handler: 'closeView'
}]
});

View File

@ -32,8 +32,10 @@ Ext.define('Traccar.view.AttributeAliases', {
tbar: {
xtype: 'editToolbar',
items: ['-', {
xtype: 'tbtext',
html: Strings.sharedDevice
}, {
xtype: 'combobox',
fieldLabel: Strings.sharedDevice,
reference: 'deviceField',
store: 'Devices',
displayField: 'name',

View File

@ -39,10 +39,16 @@ Ext.define('Traccar.view.AttributeDialog', {
},
buttons: [{
text: Strings.sharedSave,
glyph: 'xf00c@FontAwesome',
tooltip: Strings.sharedSave,
tooltipType: 'title',
minWidth: 0,
handler: 'onSaveClick'
}, {
text: Strings.sharedCancel,
glyph: 'xf00d@FontAwesome',
tooltip: Strings.sharedCancel,
tooltipType: 'title',
minWidth: 0,
handler: 'closeView'
}]
});

View File

@ -24,10 +24,16 @@ Ext.define('Traccar.view.BaseEditDialog', {
}, {
xtype: 'tbfill'
}, {
text: Strings.sharedSave,
glyph: 'xf00c@FontAwesome',
tooltip: Strings.sharedSave,
tooltipType: 'title',
minWidth: 0,
handler: 'onSaveClick'
}, {
text: Strings.sharedCancel,
glyph: 'xf00d@FontAwesome',
tooltip: Strings.sharedCancel,
tooltipType: 'title',
minWidth: 0,
handler: 'closeView'
}]
});

View File

@ -44,12 +44,16 @@ Ext.define('Traccar.view.DeviceDistanceDialog', {
}],
buttons: [{
text: Strings.sharedSet,
disabled: true,
reference: 'setButton',
glyph: 'xf00c@FontAwesome',
tooltip: Strings.sharedSet,
tooltipType: 'title',
minWidth: 0,
handler: 'onSetClick'
}, {
text: Strings.sharedCancel,
glyph: 'xf00d@FontAwesome',
tooltip: Strings.sharedCancel,
tooltipType: 'title',
minWidth: 0,
handler: 'closeView'
}]
});

View File

@ -50,10 +50,16 @@ Ext.define('Traccar.view.GeofenceDialog', {
}, {
xtype: 'tbfill'
}, {
text: Strings.sharedSave,
glyph: 'xf00c@FontAwesome',
tooltip: Strings.sharedSave,
tooltipType: 'title',
minWidth: 0,
handler: 'onSaveClick'
}, {
text: Strings.sharedCancel,
glyph: 'xf00d@FontAwesome',
tooltip: Strings.sharedCancel,
tooltipType: 'title',
minWidth: 0,
handler: 'closeView'
}]
});

View File

@ -40,11 +40,17 @@ Ext.define('Traccar.view.GeofenceMap', {
}, {
xtype: 'tbfill'
}, {
text: Strings.sharedSave,
glyph: 'xf00c@FontAwesome',
tooltip: Strings.sharedSave,
tooltipType: 'title',
minWidth: 0,
handler: 'onSaveClick'
}, {
text: Strings.sharedCancel,
handler: 'onCancelClick'
glyph: 'xf00d@FontAwesome',
tooltip: Strings.sharedCancel,
tooltipType: 'title',
minWidth: 0,
handler: 'closeView'
}]
},

View File

@ -90,10 +90,16 @@ Ext.define('Traccar.view.ReportConfigDialog', {
}],
buttons: [{
text: Strings.sharedSave,
glyph: 'xf00c@FontAwesome',
tooltip: Strings.sharedSave,
tooltipType: 'title',
minWidth: 0,
handler: 'onSaveClick'
}, {
text: Strings.sharedCancel,
glyph: 'xf00d@FontAwesome',
tooltip: Strings.sharedCancel,
tooltipType: 'title',
minWidth: 0,
handler: 'closeView'
}]
});

View File

@ -119,10 +119,16 @@ Ext.define('Traccar.view.ServerDialog', {
}, {
xtype: 'tbfill'
}, {
text: Strings.sharedSave,
glyph: 'xf00c@FontAwesome',
tooltip: Strings.sharedSave,
tooltipType: 'title',
minWidth: 0,
handler: 'onSaveClick'
}, {
text: Strings.sharedCancel,
glyph: 'xf00d@FontAwesome',
tooltip: Strings.sharedCancel,
tooltipType: 'title',
minWidth: 0,
handler: 'closeView'
}]
});

View File

@ -125,10 +125,16 @@ Ext.define('Traccar.view.UserDialog', {
}, {
xtype: 'tbfill'
}, {
text: Strings.sharedSave,
glyph: 'xf00c@FontAwesome',
tooltip: Strings.sharedSave,
tooltipType: 'title',
minWidth: 0,
handler: 'onSaveClick'
}, {
text: Strings.sharedCancel,
glyph: 'xf00d@FontAwesome',
tooltip: Strings.sharedCancel,
tooltipType: 'title',
minWidth: 0,
handler: 'closeView'
}]
});