mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-25 06:56:38 +00:00
When switching between tabs, editors remain open (#586)
I misunderstood the purpose of a ko.foreach() loop in my changes back in #534. This re-introduces the loop.
This commit is contained in:
parent
f82b0b442e
commit
4c2f22c2b1
@ -76,10 +76,10 @@
|
||||
|
||||
<!-- Tabs Panes -- Start -->
|
||||
<div class="tabPanesContainer">
|
||||
<!-- ko if: activeTab && activeTab() -->
|
||||
<div class="tabs-container" data-bind="visible: activeTab().isActive">
|
||||
<!-- ko foreach: openedTabs -->
|
||||
<div class="tabs-container" data-bind="visible: $data.isActive">
|
||||
<span
|
||||
data-bind="class: activeTab().constructor.component.name, component: { name: activeTab().constructor.component.name, params: activeTab }"
|
||||
data-bind="class: $data.constructor.component.name, component: { name: $data.constructor.component.name, params: $data }"
|
||||
></span>
|
||||
</div>
|
||||
<!-- /ko -->
|
||||
|
Loading…
Reference in New Issue
Block a user