Deltares / fews-web-oc

Delft-FEWS Web Operator Client
https://deltares.github.io/fews-web-oc/
GNU Affero General Public License v3.0
7 stars 5 forks source link

TopologyDisplayView: The tab type remains the same (if possible) when the user selects a new node. #946

Closed MatTolladay closed 4 months ago

MatTolladay commented 4 months ago

The v-btn-toggle was connecting its v-model to the v-btn keys. This caused the model to become meaningless when the node was changed. Using the tab.type as the button value allows the toggle group model to behave as expected and simplifies the code by removing the need for separate activeTab and activeTabType variables, with activeTab now containing the tab.type string.

Some additional cleaning up was performed