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(
220
220
* Just displays the deployment URL at the moment, but we could use this as
221
221
* a form for creating new environments.
222
222
*/
223
- override fun getNewEnvironmentUiPage (): UiPage = NewEnvironmentPage (getDeploymentURL()?.first)
223
+ override fun getNewEnvironmentUiPage (): UiPage =
224
+ NewEnvironmentPage (serviceLocator, i18n.pnotr(getDeploymentURL()?.first ? : " " ))
224
225
225
226
/* *
226
227
* We always show a list of environments.
Original file line number Diff line number Diff line change 1
1
package com.coder.toolbox.views
2
2
3
+ import com.jetbrains.toolbox.api.core.ServiceLocator
4
+ import com.jetbrains.toolbox.api.localization.LocalizableString
3
5
import com.jetbrains.toolbox.api.ui.components.UiField
6
+ import kotlinx.coroutines.flow.MutableStateFlow
7
+ import kotlinx.coroutines.flow.StateFlow
4
8
5
9
6
10
/* *
@@ -10,6 +14,7 @@ import com.jetbrains.toolbox.api.ui.components.UiField
10
14
* For now we just use this to display the deployment URL since we do not
11
15
* support creating environments from the plugin.
12
16
*/
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())
15
20
}
You can’t perform that action at this time.
0 commit comments