-
Notifications
You must be signed in to change notification settings - Fork 153
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
[#1476] Remove the highlighting when the panel is closed #1480
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -8,6 +8,7 @@ const store = new Vuex.Store({ | |||
fileTypeColors: {}, | |||
loadingOverlayCount: 0, | |||
loadingOverlayMessage: '', | |||
isTabActive: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this set to false by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing it out. Currently, isTabActive
is set to true by default in the main window during its initialization to show the resizer. It is after a tab is selected and then closed that isTabActive
will be set to false, so I set isTabActive
to be true in the store initially.
frontend/src/static/js/main.js
Outdated
@@ -112,14 +112,15 @@ window.app = new window.Vue({ | |||
|
|||
this.isTabActive = true; | |||
this.tabType = tabName; | |||
|
|||
this.$store.commit('updateTabState', this.isTabActive); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the tab state in Vuex is always the same with this.isTabActive. We can just remove this.isTabActive and use the one in Vuex.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, no problem
The highlighting of the selected tab on the summary view is present Removing the highlighting will make the indicated tab information Let's remove the highlighting when closing the panel. |
Resolves #1476
Commit message: