mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Selected component in the thang components edit view shows up with a blue header.
This commit is contained in:
parent
6f2de166c0
commit
5f11a5ecca
2 changed files with 5 additions and 1 deletions
|
@ -51,4 +51,6 @@
|
|||
right: 0
|
||||
left: 20px
|
||||
overflow: scroll
|
||||
|
||||
|
||||
.selected-component .panel-heading
|
||||
background-color: lightblue
|
|
@ -275,6 +275,7 @@ module.exports = class ThangComponentsEditView extends CocoView
|
|||
|
||||
onSelectComponent: (e, nodes) =>
|
||||
@componentsTreema.$el.find('.dependent').removeClass('dependent')
|
||||
@$el.find('.selected-component').removeClass('selected-component')
|
||||
return unless nodes.length is 1
|
||||
|
||||
# find dependent components
|
||||
|
@ -302,6 +303,7 @@ module.exports = class ThangComponentsEditView extends CocoView
|
|||
continue unless subview instanceof ThangComponentConfigView
|
||||
if subview.component.get('original') is nodes[0].getData().original
|
||||
subview.$el[0].scrollIntoView()
|
||||
subview.$el.addClass('selected-component')
|
||||
break
|
||||
|
||||
onChangeExtantComponents: =>
|
||||
|
|
Loading…
Reference in a new issue