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

Hide CCv2 actions in the Search Everywhere #1268

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
### Fixes
- Correctly define Scope to filter for Properties File [#1247](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1247)
- Add all module Classpaths and necessary Properties to JUnit Tests [#1241](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1241)
- Hide CCv2 actions in the _Search Everywhere_ [#1268](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1268)

### SAP CX Logging enhancements
- Fixed the notification message when a server is NULL [#1253](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1253)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ abstract class AbstractCCv2ShowWithStatusAction<T : Enum<T>>(

override fun update(e: AnActionEvent) {
super.update(e)
e.presentation.isVisible = e.project
val isRightPlace = "GoToAction" != e.place
e.presentation.isEnabled = isRightPlace
e.presentation.isVisible = isRightPlace && e.project
?.let { CCv2View.getActiveTab(it) == tab }
?: false
}
Expand Down
Loading