Merge pull request #86 from AAMasters/develop

Change in the flSlug construction
This commit is contained in:
benme authored and GitHub committed 2019-07-13 09:00:09 -03:00
commit 7f935079e1
3 files changed
+10 -4

No files matched your search

+6
View File
@@ -749,6 +749,12 @@ function newStrategyPart () {
case 'Phase': {
let parent = thisObject.payload.parentNode
if (parent !== undefined) {
let granParent = parent.payload.parentNode
if (granParent !== undefined) {
if (granParent.type === 'Initial Definition') {
return label + ' #' + 0
}
}
for (let i = 0; i < parent.phases.length; i++) {
let phase = parent.phases[i]
if (phase.id === thisObject.payload.node.id) {
+2 -2
View File
@@ -70,7 +70,7 @@ function newTimeScale () {
if (thisObject.lenghtPercentage < STEP_SIZE) { thisObject.lenghtPercentage = STEP_SIZE }
} else {
thisObject.lenghtPercentage = thisObject.lenghtPercentage + STEP_SIZE
if (thisObject.lenghtPercentage > 200) { thisObject.lenghtPercentage = 200 }
if (thisObject.lenghtPercentage > 400) { thisObject.lenghtPercentage = 400 }
}
event.lenghtPercentage = thisObject.lenghtPercentage
@@ -107,7 +107,7 @@ function newTimeScale () {
const DISTANCE_BETWEEN_ARROWS = 10
const MIN_DISTANCE_FROM_CENTER = 110
const CURRENT_VALUE_DISTANCE = MIN_DISTANCE_FROM_CENTER + thisObject.lenghtPercentage
const MAX_DISTANCE_FROM_CENTER = MIN_DISTANCE_FROM_CENTER + 200 + DISTANCE_BETWEEN_ARROWS
const MAX_DISTANCE_FROM_CENTER = MIN_DISTANCE_FROM_CENTER + 400 + DISTANCE_BETWEEN_ARROWS
let ARROW_DIRECTION = 0
+2 -2
View File
@@ -46,7 +46,7 @@ function newStrategizerGateway () {
}
user = JSON.parse(user)
let fbSlug = 'simulator' + '-' + 'bot' + '-' + user.alias.replace('.', '')
let fbSlug = 'simulator' + '-' + user.alias.replace('.', '')
graphQLServer = await axios({
url: window.canvasApp.graphQL.masterAppApiUrl,
@@ -101,7 +101,7 @@ function newStrategizerGateway () {
}
user = JSON.parse(user)
let fbSlug = 'simulator' + '-' + 'bot' + '-' + user.alias.replace('.', '')
let fbSlug = 'simulator' + '-' + user.alias.replace('.', '')
/* See if we need to update or create a new record at the strategizer */