Skip to content

Commit

Permalink
fix tab-menu state
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin Su Yoon committed Jun 2, 2017
1 parent 9646594 commit 273bf31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/frontend/components/app-trees/app-trees.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
showMainItems="true"
[tabs]="tabs"
[DOMSelectionActive]="DOMSelectionActive"
[selectedTab]="selectedTab"
(tabChange)="onTabSelectionChanged($event)"
(DOMSelectionActiveChange)="onDOMSelectionActiveChange($event)">
<div postlude class="flex px3">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<header class="flex flex-justify bg-panel border-bottom">
<div class="flex">
<div class="primary-color tab-menu-title px2 py2 border-transparent mt1"
[ngClass]="{'bg-base border-top border-right border-left selected': t.selected}"
[ngClass]="{'bg-base border-top border-right border-left selected': t.tab === selectedStateTab}"
*ngFor="let t of tabs; let i = index" (click)="onSelect(t)">
{{t.title}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/components/tab-menu/tab-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</svg>
</div>
<div class="primary-color tab-menu-title px2 py2 border-transparent mt1"
[ngClass]="{'bg-base border-top border-right border-left selected': t.selected}"
[ngClass]="{'bg-base border-top border-right border-left selected': t.tab === selectedTab}"
*ngFor="let t of tabs; let i = index" (click)="onSelect(t)">
{{t.title}}
</div>
Expand Down

0 comments on commit 273bf31

Please sign in to comment.