Forced collapse of user Profiles
This commit is contained in:
1 parent
ea0e9eab23
commit
2ae97b6d0e
1 file changed
+11
-3
@@ -37,9 +37,17 @@ function newGovernanceUserProfileSpace() {
|
||||
/*
|
||||
If the workspace is not related to governance, then we exit the Intialize Function
|
||||
*/
|
||||
let resultsArary = UI.projects.foundations.spaces.designSpace.workspace.getHierarchyHeadsByNodeType('User Profile')
|
||||
if (resultsArary.length === 0) { return }
|
||||
|
||||
let userProfiles = UI.projects.foundations.spaces.designSpace.workspace.getHierarchyHeadsByNodeType('User Profile')
|
||||
if (userProfiles.length === 0) { return }
|
||||
/*
|
||||
We are going to collapse all User Profiles to save processing resources at the UI
|
||||
*/
|
||||
for (let i = 0; i < userProfiles.length; i++) {
|
||||
userProfile = userProfiles[i]
|
||||
if (userProfile.payload.floatingObject.isCollapsed !== true) {
|
||||
userProfile.payload.floatingObject.collapseToggle()
|
||||
}
|
||||
}
|
||||
/*
|
||||
Here we will setup the Reputation for each profile.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user