This commit is contained in:
Luis Fernando Molina committed 2018-06-15 13:51:59 +02:00
1 parent 465ba5c2ff
commit 067f4f46f6
4 files changed
+15 -7

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@
userProfile.storagePermissions.push([dependecy + "." + "READ", readPermission]);
}
}
/* In order to be able to download a bot source code, the user will need READ permissions over the Platform container. */
let container = "aaplatform";
+1 -1
View File
@@ -100,7 +100,7 @@ function newCloudVM() {
+ window.DEV_TEAM + "/"
+ "members" + "/"
+ window.USER_LOGGED_IN + "/"
+ window.CURRENT_BOT + "/"
+ window.CURRENT_BOT_REPO + "/"
+ window.CURRENT_PROCESS + "/"
+ "User.Bot.js"
;
+5
View File
@@ -37,8 +37,10 @@ function newCurrentBot() {
if (window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots.length === 0) {
window.CURRENT_BOT = NOT_FOUND;
window.CURRENT_BOT_REPO = "NO REPO";
} else {
window.CURRENT_BOT = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].displayName;
window.CURRENT_BOT_REPO = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].repo;
}
}
@@ -52,6 +54,7 @@ function newCurrentBot() {
sharedStatus.currentUserBotIndex = 0;
window.CURRENT_BOT = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].displayName;
window.CURRENT_BOT_REPO = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].repo;
sharedStatus.eventHandler.raiseEvent("userBot Changed");
} else {
@@ -67,6 +70,7 @@ function newCurrentBot() {
sharedStatus.currentUserBotIndex = 0;
window.CURRENT_BOT = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].displayName;
window.CURRENT_BOT_REPO = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].repo;
sharedStatus.eventHandler.raiseEvent("userBot Changed");
return;
}
@@ -75,6 +79,7 @@ function newCurrentBot() {
sharedStatus.currentUserBotIndex++;
window.CURRENT_BOT = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].displayName;
window.CURRENT_BOT_REPO = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].repo;
sharedStatus.eventHandler.raiseEvent("userBot Changed");
return;
}
+8 -5
View File
@@ -24,6 +24,7 @@ function newDevTeam() {
const NOT_FOUND = "Not a devTeam Member";
let sharedStatus;
let label = ""
return thisObject;
@@ -32,9 +33,10 @@ function newDevTeam() {
sharedStatus = pSharedStatus;
if (window.USER_PROFILE.devTeams.length === 0) {
window.DEV_TEAM = NOT_FOUND;
label = NOT_FOUND;
} else {
window.DEV_TEAM = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].displayName;
window.DEV_TEAM = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].codeName;
label = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].displayName;
}
thisObject.container.eventHandler.listenToEvent("onMouseClick", onClick);
@@ -45,7 +47,8 @@ function newDevTeam() {
if (sharedStatus.currentDevTeamIndex + 1 === window.USER_PROFILE.devTeams.length) {
sharedStatus.currentDevTeamIndex = 0;
window.DEV_TEAM = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].displayName;
window.DEV_TEAM = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].codeName;
label = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].displayName;
sharedStatus.eventHandler.raiseEvent("devTeam Changed");
return;
}
@@ -53,7 +56,8 @@ function newDevTeam() {
if (sharedStatus.currentDevTeamIndex + 1 < window.USER_PROFILE.devTeams.length) {
sharedStatus.currentDevTeamIndex++;
window.DEV_TEAM = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].displayName;
window.DEV_TEAM = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].codeName;
label = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].displayName;
sharedStatus.eventHandler.raiseEvent("devTeam Changed");
return;
}
@@ -83,7 +87,6 @@ function newDevTeam() {
thisObject.container.frame.draw(false, false);
let fontSize = 12;
let label = window.DEV_TEAM;
let point = {
x: thisObject.container.frame.width * 1 / 3,