in core/src/main/kotlin/com/jetbrains/aspire/actions/dashboard/resource/PerformResourceAction.kt [68:76]
override fun updateAction(event: AnActionEvent, resourceService: AspireResource, project: Project) {
val commands = getCommands(resourceService)
if (commands.isEmpty() || !commands.any { it.state == ResourceCommandState.Enabled }) {
event.presentation.isEnabledAndVisible = false
return
}
event.presentation.isEnabledAndVisible = true
}