Repository: kylin Updated Branches: refs/heads/master f9b6db6a5 -> ce6e3ede2
KYLIN-2637 The tips is not shown after creating project successfully. Signed-off-by: Billy Liu <billy...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/ce6e3ede Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/ce6e3ede Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/ce6e3ede Branch: refs/heads/master Commit: ce6e3ede2f670bf037a55234630b85098265075a Parents: f9b6db6 Author: 10069681 <peng.jian...@zte.com.cn> Authored: Mon May 22 20:34:53 2017 +0800 Committer: Billy Liu <billy...@apache.org> Committed: Tue May 23 09:43:07 2017 +0800 ---------------------------------------------------------------------- webapp/app/js/controllers/page.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/ce6e3ede/webapp/app/js/controllers/page.js ---------------------------------------------------------------------- diff --git a/webapp/app/js/controllers/page.js b/webapp/app/js/controllers/page.js index 056cc48..c426516 100644 --- a/webapp/app/js/controllers/page.js +++ b/webapp/app/js/controllers/page.js @@ -188,7 +188,7 @@ KylinApp.controller('PageCtrl', function ($scope, $q, AccessService, $modal, $lo }); -var projCtrl = function ($scope, $location, $modalInstance, ProjectService, MessageService, projects, project, SweetAlert, ProjectModel, $cookieStore, $route) { +var projCtrl = function ($scope, $location, $modalInstance, ProjectService, MessageService, projects, project, SweetAlert, ProjectModel, $cookieStore, $route, $timeout) { $scope.state = { isEdit: false, oldProjName: null, @@ -240,10 +240,20 @@ var projCtrl = function ($scope, $location, $modalInstance, ProjectService, Mess } else { ProjectService.save({}, {projectDescData: angular.toJson($scope.proj)}, function (newProj) { - SweetAlert.swal('Success!', 'New project created successfully!', 'success'); $modalInstance.dismiss('cancel'); $cookieStore.put("project", newProj.name); - location.reload(); + SweetAlert.swal({ + title: "Success!", + text: "New project created successfully!", + confirmButtonClass: 'btn-primary', + type: "success" + },function(){ + location.reload(); + }); + + $timeout(function () { + location.reload(); + }, 3000); }, function (e) { if (e.data && e.data.exception) { var message = e.data.exception;