Adding support for indicator bots
This commit is contained in:
1 parent
fe9ab91b32
commit
278df1fea0
4 files changed
+27
-12
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@superalgos/operations-client",
|
||||
"version": "0.0.8",
|
||||
"version": "0.0.9",
|
||||
"description": "Superalgos Operations client-side web app",
|
||||
"main": "src/index.js",
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const GET_ALL_TEAMS_QUERY = gql`
|
||||
query Teams_FbByTeamMember {
|
||||
teams_FbByTeamMember {
|
||||
query {
|
||||
teams_TeamsByOwner {
|
||||
id
|
||||
name
|
||||
slug
|
||||
|
||||
@@ -1,8 +1,21 @@
|
||||
const types = [ 'Live', 'Competition', 'Backtest' ]
|
||||
const startModes = [ 'All Months', 'One Month', 'No Time' ]
|
||||
const availableMonths = ["January", "February", "March", "April", "May", "June",
|
||||
"July", "August", "September", "October", "November", "December"]
|
||||
|
||||
const startModes = [
|
||||
{
|
||||
name: 'All Months',
|
||||
value: 'allMonths'
|
||||
},
|
||||
{
|
||||
name: 'One Month',
|
||||
value: 'oneMonth'
|
||||
},
|
||||
{
|
||||
name: 'No Time',
|
||||
value: 'noTime'
|
||||
}
|
||||
]
|
||||
const exchanges = [
|
||||
{
|
||||
id: '1',
|
||||
|
||||
@@ -119,7 +119,7 @@ class AddClone extends Component {
|
||||
)
|
||||
}
|
||||
|
||||
if(!isDefined(data.teams_FbByTeamMember)){
|
||||
if(!isDefined(data.teams_TeamsByOwner)){
|
||||
return (
|
||||
<Select
|
||||
value='noteams'
|
||||
@@ -132,7 +132,7 @@ class AddClone extends Component {
|
||||
</Select>
|
||||
)
|
||||
} else{
|
||||
this.teams = data.teams_FbByTeamMember
|
||||
this.teams = data.teams_TeamsByOwner
|
||||
}
|
||||
|
||||
return (
|
||||
@@ -145,10 +145,12 @@ class AddClone extends Component {
|
||||
onChange={e => this.setSelectedBot(e.target.value)}
|
||||
>
|
||||
{
|
||||
data.teams_FbByTeamMember.fb.map(financialBeing => (
|
||||
<MenuItem key={financialBeing.id} value={financialBeing.id}>
|
||||
{data.teams_FbByTeamMember.name + '/' + financialBeing.name}
|
||||
</MenuItem>
|
||||
data.teams_TeamsByOwner.map(team => (
|
||||
team.map(financialBeing => (
|
||||
<MenuItem key={financialBeing.id} value={financialBeing.id}>
|
||||
{team.name + '/' + financialBeing.name}
|
||||
</MenuItem>
|
||||
))
|
||||
))
|
||||
}
|
||||
</Select>
|
||||
@@ -289,8 +291,8 @@ class AddClone extends Component {
|
||||
fullWidth
|
||||
>
|
||||
{startModes.map(option => (
|
||||
<MenuItem key={option} value={option}>
|
||||
{option}
|
||||
<MenuItem key={option.value} value={option.value}>
|
||||
{option.name}
|
||||
</MenuItem>
|
||||
))}
|
||||
</TextField>
|
||||
|
||||
Reference in new issue
Block a user