Explorar o código

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

Fixed role status for the newly created ones
Enrico Berti %!s(int64=11) %!d(string=hai) anos
pai
achega
eaf23d3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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();