Skip to content

Commit

Permalink
remove unnecessary MenuList setMode (smartdevicelink#573)
Browse files Browse the repository at this point in the history
* remove unnecessary MenuList setMode

* Revert "remove unnecessary MenuList setMode"

This reverts commit 2d43636.

* fix console error with scrollable message change mode and add setMode call to scrollableMessage
  • Loading branch information
iCollin authored and ValeriiMalkov committed Jul 16, 2021
1 parent b8af9c9 commit 2080039
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 1 addition & 6 deletions app/controlls/MenuList.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@ SDL.MenuList = Em.ContainerView.extend({
text: buttons[i].text,
icon: buttons[i].image ? buttons[i].image.value : '',
groupName: 'AlertPopUp',
classNameBindings: ['isHighlighted:isHighlighted',
'getCurrentDisplayModeClass'],
getCurrentDisplayModeClass: function() {
return SDL.ControlButtons.getCurrentDisplayModeClass(
SDL.ControlButtons.imageMode.selection);
}.property('SDL.ControlButtons.imageMode.selection'),
classNameBindings: ['isHighlighted:isHighlighted'],
isHighlighted: buttons[i].isHighlighted ? true : false,
softButtonID: buttons[i].softButtonID,
systemAction: buttons[i].systemAction,
Expand Down
3 changes: 3 additions & 0 deletions app/view/sdl/shared/scrollableMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ SDL.ScrollableMessage = SDL.SDLAbstractView.create(
childViews: [
'backButton', 'captionText', 'softButtons', 'listOfCommands'
],
imageModeChanged: function() {
this.get('softButtons').setMode(SDL.SDLModel.data.imageMode);
}.observes('SDL.SDLModel.data.imageMode'),
/**
* Deactivate View
*
Expand Down

0 comments on commit 2080039

Please sign in to comment.