Commit a540c949 by lepdou

bugfix when create app namespace jump to permission page

parent ff156676
......@@ -80,7 +80,7 @@ public class NamespaceController {
@PreAuthorize(value = "@permissionValidator.hasCreateAppNamespacePermission(#appId, #appNamespace)")
@RequestMapping(value = "/apps/{appId}/appnamespaces", method = RequestMethod.POST)
public void createAppNamespace(@PathVariable String appId, @RequestBody AppNamespace appNamespace) {
public AppNamespace createAppNamespace(@PathVariable String appId, @RequestBody AppNamespace appNamespace) {
checkArgument(appNamespace.getAppId(), appNamespace.getName());
if (!InputValidator.isValidAppNamespace(appNamespace.getName())) {
......@@ -106,6 +106,7 @@ public class NamespaceController {
publisher.publishEvent(new AppNamespaceCreationEvent(createdAppNamespace));
return createdAppNamespace;
}
@RequestMapping("/apps/{appId}/envs/{env}/clusters/{clusterName}/namespaces")
......
......@@ -112,7 +112,7 @@ namespace_module.controller("LinkNamespaceController",
} else {//private的直接link并且跳转到授权页面
$window.location.href =
"/namespace/role.html?#/appid=" + $scope.appId
+ "&namespaceName=" + $scope.appNamespace.name;
+ "&namespaceName=" + result.name;
}
}, 1000);
}, function (result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment