From cc740a4a5e223278e7ae771aa789facce2647992 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Fri, 20 Jan 2017 12:52:35 -0300 Subject: [PATCH] Adding closedAt status commentStream --- .../coral-embed-stream/src/CommentStream.js | 19 +++++++++---------- graph/typeDefs.js | 1 + 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/client/coral-embed-stream/src/CommentStream.js b/client/coral-embed-stream/src/CommentStream.js index c46785ec6..f1eb8743b 100644 --- a/client/coral-embed-stream/src/CommentStream.js +++ b/client/coral-embed-stream/src/CommentStream.js @@ -6,8 +6,7 @@ import gql from 'graphql-tag'; import { itemActions, - - // Notification, + Notification, notificationActions, authActions } from '../../coral-framework'; @@ -38,7 +37,7 @@ const {addItem, updateItem, postItem, getStream, postAction, deleteAction, appen const {addNotification, clearNotification} = notificationActions; const {logout, showSignInDialog} = authActions; -const assetID = 'be97065d-f0eb-44a8-8efb-b416229afdc3'; +const assetID = '4807a33a-894a-4351-8eb5-a8e0091af568'; class CommentStream extends Component { @@ -128,7 +127,7 @@ class CommentStream extends Component { {currentUser && } { - status === 'open' + asset.closedAt === null ?
+ } { @@ -365,6 +363,7 @@ query AssetQuery($asset_id: ID!) { id title url + closedAt settings { moderation infoBoxEnable diff --git a/graph/typeDefs.js b/graph/typeDefs.js index 0d1b3a259..5b7bbaa60 100644 --- a/graph/typeDefs.js +++ b/graph/typeDefs.js @@ -72,6 +72,7 @@ type Asset { url: String comments: [Comment] settings: Settings! + closedAt: String } scalar URL