summaryrefslogtreecommitdiff
path: root/src/components/HMI/app/view/sdl/VehicleInfoView.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/HMI/app/view/sdl/VehicleInfoView.js')
-rw-r--r--src/components/HMI/app/view/sdl/VehicleInfoView.js18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/components/HMI/app/view/sdl/VehicleInfoView.js b/src/components/HMI/app/view/sdl/VehicleInfoView.js
index a42efac4d..915d416d7 100644
--- a/src/components/HMI/app/view/sdl/VehicleInfoView.js
+++ b/src/components/HMI/app/view/sdl/VehicleInfoView.js
@@ -54,7 +54,8 @@ SDL.VehicleInfo = Em.ContainerView.create( {
'ecu1Data',
'ecu2Data',
'odometrTitle',
- 'odometrInput'
+ 'odometrInput',
+ 'onAwakeSDLButton'
],
/**
@@ -187,6 +188,21 @@ SDL.VehicleInfo = Em.ContainerView.create( {
} ),
/**
+ * Button to send OnEmergencyEvent to SDL
+ */
+ onAwakeSDLButton: SDL.Button.extend( {
+ classNames: 'button onEmergencyEvent',
+ textBinding: 'this.displayText',
+ action: 'OnEmergencyEventNotificationSend',
+ target: 'SDL.SDLController',
+ enabled: false,
+ onDown: false,
+ displayText: function () {
+ return this.enabled ? 'Send OnEmergencyEvent On' : 'Send OnEmergencyEvent Off';
+ }.property('this.enabled')
+ }),
+
+ /**
* Trigger function that activates and deactivates VehicleInfo PopUp
*/
toggleActivity: function() {