Correction bad copy & paste
This commit is contained in:
1 parent
63e0a2342e
commit
f99f4d6f87
1 file changed
+26
-2
@@ -150,6 +150,26 @@ function newGovernanceFunctionLibraryProfileConstructor() {
|
||||
const hasFork = UI.projects.governance.spaces.userProfileSpace.githubForks.get(githubUsername)
|
||||
if(hasFork === undefined) {
|
||||
// New user! Probably doesn't have a fork, so let's create it.
|
||||
let apisNode = UI.projects.foundations.spaces.designSpace.workspace.getHierarchyHeadByNodeType('APIs')
|
||||
if (apisNode === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Governance', 'Topic', 'Gov Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return
|
||||
}
|
||||
if (apisNode.githubAPI === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Governance', 'Topic', 'Gov Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return
|
||||
}
|
||||
|
||||
let config = JSON.parse(apisNode.githubAPI.config)
|
||||
if (config.username === undefined || config.username === "") {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Governance', 'Topic', 'Gov Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return
|
||||
}
|
||||
if (config.token === undefined || config.token === "") {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Governance', 'Topic', 'Gov Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return
|
||||
}
|
||||
|
||||
let params = {
|
||||
method: 'createGithubFork',
|
||||
username: config.username,
|
||||
@@ -164,7 +184,7 @@ function newGovernanceFunctionLibraryProfileConstructor() {
|
||||
|
||||
data = JSON.parse(data)
|
||||
if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result && data.result === GLOBAL.DEFAULT_OK_RESPONSE.result) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Governance', 'Topic', 'Gov Message - Automated User Profile Creation Done')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Governance', 'Topic', 'Gov Message - Automated User Profile Contribute Done')
|
||||
} else {
|
||||
if (data.docs === undefined) {return}
|
||||
UI.projects.education.spaces.docsSpace.navigateTo(
|
||||
@@ -192,7 +212,11 @@ function newGovernanceFunctionLibraryProfileConstructor() {
|
||||
We also Install the User Profile as a Plugin, which in turns saves it.
|
||||
*/
|
||||
userProfile.payload.uiObject.menu.internalClick('Install as Plugin')
|
||||
userProfile.payload.uiObject.menu.internalClick('Install as Plugin')
|
||||
userProfile.payload.uiObject.menu.internalClick('Install as Plugin')
|
||||
/*
|
||||
TODO: Let's create a nice basic profile to start with liquidity and community
|
||||
*/
|
||||
|
||||
/*
|
||||
Show nice message.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user