From fea94a59d1cf4205b92e902851ffd1e6b9305d9d Mon Sep 17 00:00:00 2001 From: Ann Shumilova Date: Wed, 2 Mar 2016 15:15:54 +0200 Subject: [PATCH] CHE-439: fix referencing attributes due to model changes Signed-off-by: Ann Shumilova --- .../app/projects/create-project/create-project.controller.js | 4 ++-- .../che-stack-library-workspace-selecter.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dashboard/src/app/projects/create-project/create-project.controller.js b/dashboard/src/app/projects/create-project/create-project.controller.js index e5ed3e65c5..327980e1da 100755 --- a/dashboard/src/app/projects/create-project/create-project.controller.js +++ b/dashboard/src/app/projects/create-project/create-project.controller.js @@ -1044,8 +1044,8 @@ export class CreateProjectCtrl { this.workspaceName = workspace.config.name; this.stackLibraryOption = 'existing-workspace'; let stack = null; - if (workspace.attributes && workspace.attributes.stackId) { - let stackId = workspace.attributes.stackId; + if (workspace.config.attributes && workspace.config.attributes.stackId) { + let stackId = workspace.config.attributes.stackId; stack = this.cheStack.getStackById(stackId); } this.updateCurrentStack(stack); diff --git a/dashboard/src/app/workspaces/create-workspace/select-stack/stack-library/stack-library-workspace-selecter/che-stack-library-workspace-selecter.html b/dashboard/src/app/workspaces/create-workspace/select-stack/stack-library/stack-library-workspace-selecter/che-stack-library-workspace-selecter.html index 510d41474d..f05227c577 100644 --- a/dashboard/src/app/workspaces/create-workspace/select-stack/stack-library/stack-library-workspace-selecter/che-stack-library-workspace-selecter.html +++ b/dashboard/src/app/workspaces/create-workspace/select-stack/stack-library/stack-library-workspace-selecter/che-stack-library-workspace-selecter.html @@ -9,8 +9,8 @@
{{workspace.config.name}}
-
-
Stack: {{workspace.attributes.stackId}}
+
+
Stack: {{workspace.config.attributes.stackId}}
{{getWorkspaceStackDetails()}}