mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 15:52:01 +07:00
[ghai] Make project available to summary timeline component factory
(cherry picked from commit cab7ffc9b8051cda70dadeb2d2d5ee643aad4a31) IJ-CR-148445 GitOrigin-RevId: 959a58f5a684a307aee569c1b1fe812d550f20ec
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5cb9626d37
commit
07f1fbf5af
@@ -75,5 +75,5 @@ interface GHPRAISummaryExtension {
|
||||
dataProvider: GHPRDataProvider,
|
||||
): GHPRAISummaryViewModel?
|
||||
|
||||
fun createTimelineComponent(vm: GHPRAISummaryViewModel): JComponent
|
||||
fun createTimelineComponent(project: Project, vm: GHPRAISummaryViewModel): JComponent
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ internal class GHPRFileEditorComponentFactory(
|
||||
projectVm.acquireAISummaryViewModel(loadedDetails.value.id, uiDisposable),
|
||||
GHPRAISummaryExtension.singleFlow
|
||||
) { summaryVm, extension ->
|
||||
summaryVm?.let { extension?.createTimelineComponent(it) }
|
||||
summaryVm?.let { extension?.createTimelineComponent(project, it) }
|
||||
}
|
||||
bindVisibilityIn(cs, summaryComponent.map { it != null })
|
||||
bindContent("${javaClass.name}.summaryComponent.content", summaryComponent)
|
||||
|
||||
Reference in New Issue
Block a user