aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Events.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-15 18:01:12 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-15 18:01:12 +1200
commit167dec228bf9227fbf1f9fa4a428b8bb309c5f94 (patch)
tree10f00593931a426aacf97a08d105f8dafda0b427 /web/app/view/Events.js
parentdab4694bcab525bcc26e6af42aacc45901093dc2 (diff)
downloadtrackermap-web-167dec228bf9227fbf1f9fa4a428b8bb309c5f94.tar.gz
trackermap-web-167dec228bf9227fbf1f9fa4a428b8bb309c5f94.tar.bz2
trackermap-web-167dec228bf9227fbf1f9fa4a428b8bb309c5f94.zip
Improvement to events panel
Diffstat (limited to 'web/app/view/Events.js')
-rw-r--r--web/app/view/Events.js18
1 files changed, 15 insertions, 3 deletions
diff --git a/web/app/view/Events.js b/web/app/view/Events.js
index 19656903..ca1f3ea5 100644
--- a/web/app/view/Events.js
+++ b/web/app/view/Events.js
@@ -60,7 +60,7 @@ Ext.define('Traccar.view.Events', {
toggleHandler: 'onScrollToLastClick',
stateId: 'events-scroll-to-last-button',
tooltip: Strings.eventsScrollToLast,
- reference: 'scrollToLast'
+ reference: 'scrollToLastButton'
}, {
id: 'soundButton',
glyph: 'xf0a2@FontAwesome',
@@ -68,6 +68,14 @@ Ext.define('Traccar.view.Events', {
stateId: 'sound-button'
}, {
glyph: 'xf014@FontAwesome',
+ tooltip: Strings.sharedRemove,
+ handler: 'onRemoveClick',
+ reference: 'removeEventButton',
+ disabled: true,
+ stateful: false,
+ enableToggle: false
+ }, {
+ glyph: 'xf1f8@FontAwesome',
tooltip: Strings.reportClear,
handler: 'onClearClick',
stateful: false,
@@ -76,20 +84,24 @@ Ext.define('Traccar.view.Events', {
glyph: 'xf00d@FontAwesome',
tooltip: Strings.sharedHide,
handler: 'onHideEvents',
- reference: 'hideEvents',
+ reference: 'hideEventsButton',
hidden: true,
stateful: false,
enableToggle: false
}]
},
+ listeners: {
+ selectionchange: 'onSelectionChange'
+ },
+
columns: {
defaults: {
flex: 1,
minWidth: Traccar.Style.columnWidthNormal
},
items: [{
- text: Strings.reportDeviceName,
+ text: Strings.sharedDevice,
dataIndex: 'deviceId',
renderer: Traccar.AttributeFormatter.getFormatter('deviceId')
}, {