From 278df1fea089cf78421fb23961b4fd21d24198aa Mon Sep 17 00:00:00 2001
From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com>
Date: Tue, 5 Feb 2019 21:21:29 -0300
Subject: [PATCH] Adding support for indicator bots
---
client/package.json | 2 +-
client/src/GraphQL/Calls/teams.js | 4 ++--
client/src/GraphQL/models.js | 15 ++++++++++++++-
client/src/views/Clone/Add/index.js | 18 ++++++++++--------
4 files changed, 27 insertions(+), 12 deletions(-)
diff --git a/client/package.json b/client/package.json
index c0907e711..fd2bcc7d4 100644
--- a/client/package.json
+++ b/client/package.json
@@ -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": {
diff --git a/client/src/GraphQL/Calls/teams.js b/client/src/GraphQL/Calls/teams.js
index 7329d3e07..0a27afd3c 100644
--- a/client/src/GraphQL/Calls/teams.js
+++ b/client/src/GraphQL/Calls/teams.js
@@ -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
diff --git a/client/src/GraphQL/models.js b/client/src/GraphQL/models.js
index 474df1fcf..50dd8a322 100644
--- a/client/src/GraphQL/models.js
+++ b/client/src/GraphQL/models.js
@@ -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',
diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js
index 54d42e0a8..e86bee6eb 100644
--- a/client/src/views/Clone/Add/index.js
+++ b/client/src/views/Clone/Add/index.js
@@ -119,7 +119,7 @@ class AddClone extends Component {
)
}
- if(!isDefined(data.teams_FbByTeamMember)){
+ if(!isDefined(data.teams_TeamsByOwner)){
return (
@@ -289,8 +291,8 @@ class AddClone extends Component {
fullWidth
>
{startModes.map(option => (
-