Skip to content

Commit

Permalink
fix bug with workspace update
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <oorel@redhat.com>
  • Loading branch information
olexii4 committed Jun 23, 2017
1 parent ccafe82 commit a2615cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,10 @@ export class WorkspaceMachineConfigController {

/**
* Change machine's source image
* @param {string} newImage
*/
changeSource(): void {
this.environmentManager.setSource(this.machine, this.newImage);
changeSource(newImage: string): void {
this.environmentManager.setSource(this.machine, newImage);
this.doUpdateConfig();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
ng-if="workspaceMachineConfigController.machineConfig.source.image">
<ng-form flex name="workspaceMachineConfigForm" class="config-machine-source">
<che-input-box ng-model="workspaceMachineConfigController.newImage"
ng-change="workspaceMachineConfigController.changeSource()"
che-on-change="workspaceMachineConfigController.changeSource($value)"
che-name="source"
che-place-holder="Image"
che-form="workspaceMachineConfigForm"
Expand Down

0 comments on commit a2615cd

Please sign in to comment.