Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

MatTolladay
Copy link
Collaborator

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

… the user selects a new node.

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 seperate activeTab and activeTabType variables, with activeTab now containing the tab.type string.

Some additional cleaning up was performed
@MatTolladay MatTolladay force-pushed the 912-when-changing-the-topology-node-the-actively-selected-component-reverts-to-the-map branch from c6a7849 to d2c89f6 Compare June 20, 2024 12:26
@MatTolladay MatTolladay self-assigned this Jun 20, 2024
@MatTolladay MatTolladay requested a review from hvangeffen June 20, 2024 12:27
Copy link
Collaborator

@hvangeffen hvangeffen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work nicely.
Only when switching between different dataDownloadDisplay's the state is not updated.
This is because dataDonwnloadDisplay is not reactive on the topologyNode prop.
Seperate issue though, but could maybe be fixed in: #947, by adding a key on topologyNode to the new dataDownloadDisplayView

@MatTolladay MatTolladay merged commit 670d702 into main Jun 20, 2024
8 checks passed
@MatTolladay MatTolladay deleted the 912-when-changing-the-topology-node-the-actively-selected-component-reverts-to-the-map branch June 20, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When changing the topology node the actively selected component reverts to the map
3 participants