From 8dcfc952bbcd17d982911f2e233001c11989bbf3 Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Fri, 2 Sep 2016 06:20:17 +0000 Subject: [PATCH] Revert "Clean up $scope usage" This reverts commit 71749301d919f0043e05815a05ece21c78c5d3b5. This fix occurs degradation. Change-Id: I4889fb7337aab6d00402f640d255b3435122dede --- .../cluster-templates/create/create.service.js | 4 +++- .../container-infra/clusters/create/create.service.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/magnum_ui/static/dashboard/container-infra/cluster-templates/create/create.service.js b/magnum_ui/static/dashboard/container-infra/cluster-templates/create/create.service.js index 61ca4553..3009926c 100644 --- a/magnum_ui/static/dashboard/container-infra/cluster-templates/create/create.service.js +++ b/magnum_ui/static/dashboard/container-infra/cluster-templates/create/create.service.js @@ -60,12 +60,14 @@ function initScope($scope) { scope = $scope; + scope.workflow = createWorkflow; + scope.model = model; scope.$on('$destroy', function() { }); } function perform() { - model.init(); + scope.model.init(); return wizardModalService.modal({ scope: scope, workflow: createWorkflow, diff --git a/magnum_ui/static/dashboard/container-infra/clusters/create/create.service.js b/magnum_ui/static/dashboard/container-infra/clusters/create/create.service.js index 2e7c3f93..39023b09 100644 --- a/magnum_ui/static/dashboard/container-infra/clusters/create/create.service.js +++ b/magnum_ui/static/dashboard/container-infra/clusters/create/create.service.js @@ -59,12 +59,14 @@ function initScope($scope) { scope = $scope; + scope.workflow = createWorkflow; + scope.model = model; scope.$on('$destroy', function() { }); } function perform(selected) { - model.init(); + scope.model.init(); scope.selected = selected; return wizardModalService.modal({ scope: scope,