Browse Source

HUE-2349 [sentry] New roles on 'roles' tab are not expanded when created

Fixed role status for the newly created ones
Enrico Berti 11 years ago
parent
commit
eaf23d3a02
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/security/static/js/hive.ko.js

+ 1 - 0
apps/security/static/js/hive.ko.js

@@ -243,6 +243,7 @@ var Role = function (vm, role) {
         vm.showCreateRole(false);
         self.reset();
         var role = new Role(vm, data.role);
+        role.showPrivileges(true);
         vm.originalRoles.unshift(role);
         vm.assist.refreshTree();
         vm.refreshExpandedRoles();