Skip to content

Commit a2615cd

Browse files
committed
fix bug with workspace update
Signed-off-by: Oleksii Orel <oorel@redhat.com>
1 parent ccafe82 commit a2615cd

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

dashboard/src/app/workspaces/workspace-details/environments/machine-config/machine-config.controller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,10 @@ export class WorkspaceMachineConfigController {
252252

253253
/**
254254
* Change machine's source image
255+
* @param {string} newImage
255256
*/
256-
changeSource(): void {
257-
this.environmentManager.setSource(this.machine, this.newImage);
257+
changeSource(newImage: string): void {
258+
this.environmentManager.setSource(this.machine, newImage);
258259
this.doUpdateConfig();
259260
}
260261

dashboard/src/app/workspaces/workspace-details/environments/machine-config/machine-config.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
ng-if="workspaceMachineConfigController.machineConfig.source.image">
4848
<ng-form flex name="workspaceMachineConfigForm" class="config-machine-source">
4949
<che-input-box ng-model="workspaceMachineConfigController.newImage"
50-
ng-change="workspaceMachineConfigController.changeSource()"
50+
che-on-change="workspaceMachineConfigController.changeSource($value)"
5151
che-name="source"
5252
che-place-holder="Image"
5353
che-form="workspaceMachineConfigForm"

0 commit comments

Comments
 (0)