@@ -12,11 +12,23 @@ const messages = defineMessages({
1212 defaultMessage : '!!!Starting Cardano node' ,
1313 description : 'Message "Starting Cardano node" on the loading screen.' ,
1414 } ,
15+ startingDescription : {
16+ id : 'loading.screen.startingCardanoDescription' ,
17+ defaultMessage :
18+ '!!!This process validates the integrity of local blockchain data and could take several minutes.' ,
19+ description : 'Message "Starting Cardano node" on the loading screen.' ,
20+ } ,
1521 stopping : {
1622 id : 'loading.screen.stoppingCardanoMessage' ,
1723 defaultMessage : '!!!Stopping Cardano node' ,
1824 description : 'Message "Stopping Cardano node" on the loading screen.' ,
1925 } ,
26+ stoppingDescription : {
27+ id : 'loading.screen.stoppingCardanoDescription' ,
28+ defaultMessage :
29+ '!!!This process closes the databases and could take several minutes. To preserve data integrity, please allow it to complete.' ,
30+ description : 'Message "Stopping Cardano node" on the loading screen.' ,
31+ } ,
2032 stopped : {
2133 id : 'loading.screen.stoppedCardanoMessage' ,
2234 defaultMessage : '!!!Cardano node stopped' ,
@@ -101,14 +113,17 @@ export default class SyncingConnectingStatus extends Component<Props> {
101113 } = this . props ;
102114 if ( isConnected ) return messages . loadingWalletData ;
103115 let connectingMessage ;
116+ let connectingDescription ;
104117 switch ( cardanoNodeState ) {
105118 case null :
106119 case CardanoNodeStates . STARTING :
107120 connectingMessage = messages . starting ;
121+ connectingDescription = messages . startingDescription ;
108122 break ;
109123 case CardanoNodeStates . STOPPING :
110124 case CardanoNodeStates . EXITING :
111125 connectingMessage = messages . stopping ;
126+ connectingDescription = messages . stoppingDescription ;
112127 break ;
113128 case CardanoNodeStates . STOPPED :
114129 connectingMessage = messages . stopped ;
@@ -141,7 +156,7 @@ export default class SyncingConnectingStatus extends Component<Props> {
141156 if ( isVerifyingBlockchain && isConnectingMessage ) {
142157 return messages . verifyingBlockchain ;
143158 }
144- return connectingMessage ;
159+ return { connectingMessage, connectingDescription } ;
145160 } ;
146161
147162 render ( ) {
@@ -170,13 +185,21 @@ export default class SyncingConnectingStatus extends Component<Props> {
170185 showEllipsis ? styles . withoutAnimation : null ,
171186 ] ) ;
172187
188+ const {
189+ connectingMessage,
190+ connectingDescription,
191+ } = this . _getConnectingMessage ( ) ;
192+
173193 return (
174194 < div className = { componentStyles } >
175195 < h1 className = { headlineStyles } >
176- { intl . formatMessage ( this . _getConnectingMessage ( ) , {
196+ { intl . formatMessage ( connectingMessage , {
177197 verificationProgress,
178198 } ) }
179199 </ h1 >
200+ < div className = { styles . description } >
201+ { connectingDescription && intl . formatMessage ( connectingDescription ) }
202+ </ div >
180203 </ div >
181204 ) ;
182205 }
0 commit comments