All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webapp.scripts.app.entities.projects.project.new.controller.js Maven / Gradle / Ivy

Go to download

Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2 (centraldogma-server)

There is a newer version: 0.70.0
Show newest version
'use strict';

angular.module('CentralDogmaAdmin')
    .controller('ProjectNewController',
                function ($scope, $state, CentralDogmaConstant,
                          ProjectService, NotificationUtil) {

                  $scope.entityNamePattern = CentralDogmaConstant.ENTITY_NAME_PATTERN;

                  $scope.createProject = function () {
                    ProjectService.createProject($scope.project.name).then(
                        function () {
                          NotificationUtil.success('entities.created_project', { name: $scope.project.name });

                          $state.go('project', {
                            projectName: $scope.project.name
                          });
                        }
                    );
                  };
                });




© 2015 - 2024 Weber Informatics LLC | Privacy Policy