File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
src/main/kotlin/com/coder/toolbox Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,8 @@ class CoderRemoteProvider(
220220 * Just displays the deployment URL at the moment, but we could use this as
221221 * a form for creating new environments.
222222 */
223- override fun getNewEnvironmentUiPage (): UiPage = NewEnvironmentPage (getDeploymentURL()?.first)
223+ override fun getNewEnvironmentUiPage (): UiPage =
224+ NewEnvironmentPage (serviceLocator, i18n.pnotr(getDeploymentURL()?.first ? : " " ))
224225
225226 /* *
226227 * We always show a list of environments.
Original file line number Diff line number Diff line change 11package com.coder.toolbox.views
22
3+ import com.jetbrains.toolbox.api.core.ServiceLocator
4+ import com.jetbrains.toolbox.api.localization.LocalizableString
35import com.jetbrains.toolbox.api.ui.components.UiField
6+ import kotlinx.coroutines.flow.MutableStateFlow
7+ import kotlinx.coroutines.flow.StateFlow
48
59
610/* *
@@ -10,6 +14,7 @@ import com.jetbrains.toolbox.api.ui.components.UiField
1014 * For now we just use this to display the deployment URL since we do not
1115 * support creating environments from the plugin.
1216 */
13- class NewEnvironmentPage (private val deploymentURL : String? ) : CoderPage(deploymentURL ? : " " ) {
14- override val fields: MutableList <UiField > = mutableListOf ()
17+ class NewEnvironmentPage (serviceLocator : ServiceLocator , deploymentURL : LocalizableString ) :
18+ CoderPage (serviceLocator, deploymentURL) {
19+ override val fields: StateFlow <List <UiField >> = MutableStateFlow (emptyList())
1520}
You can’t perform that action at this time.
0 commit comments