-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Move history multiview item actions to top #18265
Move history multiview item actions to top #18265
Conversation
0a64281
to
e4bf56d
Compare
Very cool! |
d33d461
to
8ce94b5
Compare
@davelopez This should take care of |
client/src/components/History/CurrentHistory/HistoryDetails.vue
Outdated
Show resolved
Hide resolved
c386dd9
to
c2adaf6
Compare
client/src/components/History/CurrentHistory/HistoryNavigation.vue
Outdated
Show resolved
Hide resolved
client/src/components/History/CurrentHistory/HistoryNavigation.vue
Outdated
Show resolved
Hide resolved
client/src/components/History/CurrentHistory/HistoryNavigation.vue
Outdated
Show resolved
Hide resolved
client/src/components/History/CurrentHistory/HistoryDetails.vue
Outdated
Show resolved
Hide resolved
Adds a `pinnedHistoriesSummarizedStatus` computed ref to `historyStore` that Returns a string that indicates whether all the pinned histories have annotations, tags, both, or none of them. This is used to then adjust the `DetailsLayout` header height accordingly.
Add `HistoryNavigation` to the top section as well. WIP: There is a bug right now that applies the dropdown action to all pinned histories in multiview (e.g.: You try to delete a history from the dropdown, but a modal opens up for each pinned history
Using `v-b-modal:modal-id` had the disadvantage that if we had multiple components containing modals with same ids, they would all open simultaneously. Using `v-modal` to open modals instead removes this side effect.
So that the dropdown item says "Purge this history" instead of delete for a history that is already deleted.
Move summarized type to its own file as well.
Co-authored-by: David López <[email protected]>
cafbd29
to
f5cc111
Compare
To use updated message for permanently deleted history
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.
Awesome! Thank you so much @ahmedhamidawan for addressing all the comments!
It looks great!
I've added a last commit to adapt the unit test message.
pinnedHistoriesSummarizedStatus
computed ref tohistoryStore
that Returns a string that indicates whether all the pinned histories have annotations, tags, both, or none of them. This is used to then adjust theDetailsLayout
header height accordingly.Fixes #18210
How to test the changes?
(Select all options that apply)
License