@@ -55,15 +55,25 @@ export const cliTexts = {
55
55
REPEAT_COUNT_INVALID : 'Invalid repeat command option value' ,
56
56
CONNECTION_CLOSED : 'Client connection previously closed. Run the command after the connection is re-created.' ,
57
57
UNABLE_TO_DECRYPT : 'Unable to decrypt. Check the system keychain or re-run the command.' ,
58
- PSUBSCRIBE_COMMAND : ( path : string = '' ) => (
59
- < EuiTextColor color = "danger" key = { Date . now ( ) } >
58
+ PUB_SUB_NOT_SUPPORTED_ENV : (
59
+ < div className = "cli-output-response-fail" data-testid = "user-pub-sub-link-disabled" >
60
+ PubSub not supported in this environment.
61
+ </ div >
62
+ ) ,
63
+ USE_PSUBSCRIBE_COMMAND : ( path : string = '' ) => (
64
+ < EuiTextColor color = "danger" key = { Date . now ( ) } data-testid = "user-pub-sub-link" >
60
65
{ 'Use ' }
61
66
< EuiLink { ...getRouterLinkProps ( path ) } color = "text" data-test-subj = "pubsub-page-btn" >
62
67
Pub/Sub
63
68
</ EuiLink >
64
69
{ ' to see the messages published to all channels in your database.' }
65
70
</ EuiTextColor >
66
71
) ,
72
+ PSUBSCRIBE_COMMAND : ( path : string = '' ) => (
73
+ < FeatureFlagComponent name = { FeatureFlags . envDependent } otherwise = { cliTexts . PUB_SUB_NOT_SUPPORTED_ENV } >
74
+ { cliTexts . USE_PSUBSCRIBE_COMMAND ( path ) }
75
+ </ FeatureFlagComponent >
76
+ ) ,
67
77
PSUBSCRIBE_COMMAND_CLI : ( path : string = '' ) => (
68
78
[
69
79
cliTexts . PSUBSCRIBE_COMMAND ( path ) ,
@@ -92,11 +102,6 @@ export const cliTexts = {
92
102
{ cliTexts . USE_PROFILER_TOOL ( onClick ) }
93
103
</ FeatureFlagComponent >
94
104
) ,
95
- PUB_SUB_NOT_SUPPORTED_ENV : (
96
- < div className = "cli-output-response-fail" data-testid = "user-pub-sub-link-disabled" >
97
- PubSub not supported in this environment.
98
- </ div >
99
- ) ,
100
105
USE_PUB_SUB_TOOL : ( path : string = '' ) => (
101
106
< EuiTextColor color = "danger" key = { Date . now ( ) } data-testid = "user-pub-sub-link" >
102
107
{ 'Use ' }
0 commit comments