Redirect to cloned project after copy

This commit is contained in:
James Allen 2014-07-31 12:39:23 +01:00
parent f886f19429
commit 330d4f5a16

View file

@ -22,8 +22,7 @@ define [
$scope.state.inflight = true $scope.state.inflight = true
cloneProject($scope.inputs.projectName) cloneProject($scope.inputs.projectName)
.then (data) -> .then (data) ->
console.log "DATA", data window.location = "/project/#{data.data.project_id}"
#window.location = "/project/#{data.project_id}"
$scope.cancel = () -> $scope.cancel = () ->
$modalInstance.dismiss('cancel') $modalInstance.dismiss('cancel')