 				path = $scope.data.selectedProjectEntity
 				name = $scope.data.name
 				if !name || !path || !projectId || !projectDisplayName
-					$scope._reset(err: true)
-					return
-				$scope._setInFlight('create')
+					_reset(err: true)
+					return
+				_setInFlight('create')
 				ide.fileTreeManager
 					.createLinkedFile(name, parent_folder, 'project_file', {
 						source_project_id: projectId,

					data.name

			$scope.getUserProjects = () ->
				$scope._setInFlight('projects')
				ide.$http.get("/user/projects", {
					_csrf: window.csrfToken
				})

				if fileName
					$scope.data.name = fileName

			_setInFlight = (type) ->
				$scope.state.inFlight[type] = true

			_reset = (opts) ->
				isError = opts.err == true
				inFlight = $scope.state.inFlight
				inFlight.projects = inFlight.entities = inFlight.create = false
