Skip to content

Commit 27c5a64

Browse files
Merge pull request #443 from RedisInsight/redisgraph-empty-response-info-color
[RedisGraph] Change color of empty graph response
2 parents 49d0d52 + 0da5b69 commit 27c5a64

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

redisinsight/ui/src/packages/redisgraph/src/Graph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function Graph(props: { graphKey: string, data: any[] }) {
4545
let edgeIds = new Set(parsedResponse.edges.map(e => e.id))
4646

4747
if (nodeIds.size === 0 && parsedResponse.nodeIds.length === 0) {
48-
return <div className="responseFail">No data to visualize. Switch to Text view to see raw information.</div>
48+
return <div className="responseInfo">No data to visualize. Switch to Text view to see raw information.</div>
4949
}
5050

5151
let data = {

redisinsight/ui/src/packages/redisgraph/src/styles/styles.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,9 @@
243243
padding: 12px !important;
244244
font-family: monospace !important;
245245
}
246+
247+
.responseInfo {
248+
color: var(--info-color);
249+
padding: 12px !important;
250+
font-family: monospace !important;
251+
}

0 commit comments

Comments
 (0)