From 4b81105e07711c3cfc3caedd9a6a8f580a6fc020 Mon Sep 17 00:00:00 2001 From: Florent BENOIT Date: Mon, 29 Feb 2016 16:14:28 +0100 Subject: [PATCH] CHE-650 Fix export of a workspace following workspace model change Change-Id: Ia10cecd9a0e483507325481c62c0ff61442df568 Signed-off-by: Florent BENOIT --- .../dialog/export-workspace-dialog.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/src/app/workspaces/workspace-details/export-workspace/dialog/export-workspace-dialog.controller.js b/dashboard/src/app/workspaces/workspace-details/export-workspace/dialog/export-workspace-dialog.controller.js index 607a8d21e4..93b6375115 100644 --- a/dashboard/src/app/workspaces/workspace-details/export-workspace/dialog/export-workspace-dialog.controller.js +++ b/dashboard/src/app/workspaces/workspace-details/export-workspace/dialog/export-workspace-dialog.controller.js @@ -111,7 +111,7 @@ export class ExportWorkspaceDialogController { let remoteWorkspaceAPI = this.cheRemote.newWorkspace(authData); let remoteProjectAPI = this.cheRemote.newProject(authData); this.exportInCloudSteps += 'Creating remote workspace...'; - let createWorkspacePromise = remoteWorkspaceAPI.createWorkspaceFromConfig(null, copyOfWorkspace); + let createWorkspacePromise = remoteWorkspaceAPI.createWorkspaceFromConfig(null, copyOfWorkspace.config); createWorkspacePromise.then((remoteWorkspace) => { this.exportInCloudSteps += 'ok !
'; // ok now we've to import each project with a location into the remote workspace @@ -147,7 +147,7 @@ export class ExportWorkspaceDialogController { var projectPromises = []; // ok so - workspace.projects.forEach((project) => { + workspace.config.projects.forEach((project) => { if (project.source && project.source.location && project.source.location.length > 0) { let deferred = this.$q.defer(); let deferredPromise = deferred.promise;