@@ -131,36 +131,35 @@ jQuery(document).ready(function() {
131
131
}
132
132
133
133
function getInstanceInfo ( ) {
134
- var eiInfoContainer = document . getElementById ( 'eiInfoContainer' ) ;
135
134
$ . ajax ( {
136
135
url : frontendServiceUrl + "/information" ,
137
136
contentType : 'application/json;charset=UTF-8' ,
138
137
type : 'GET' ,
139
138
error : function ( XMLHttpRequest , textStatus , errorThrown ) {
140
- document . getElementById ( 'info_text' ) . innerHTML = errorThrown ;
139
+ if ( XMLHttpRequest . responseText == "" ) {
140
+ document . getElementById ( "eiPageFrame" ) . innerHTML = "<h3 style=\"text-align: center;\">There is no response from backend</h3>" ;
141
+ } else {
142
+ document . getElementById ( "eiPageFrame" ) . innerHTML = "<h3 style=\"text-align: center;\">" + XMLHttpRequest . responseText + "</h3>" ;
143
+ }
141
144
} ,
142
145
success : function ( data , textStatus , xhr ) {
143
-
146
+ var eiInfoContainer = document . getElementById ( 'eiInfoContainer' ) ;
147
+ var data = JSON . parse ( xhr . responseText ) ;
148
+ generateGeneralEiInfo ( data ) ;
149
+ generateEIInformationBasedOnList ( data . rabbitmq , "Eiffel Intelligence Connected RabbitMq Instances" ) ;
150
+ generateEIInformationBasedOnList ( data . mongodb , "Eiffel Intelligence Connected MongoDb Instances" ) ;
151
+ generateEIInformationBasedOnList ( data . threads , "Eiffel Intelligence Backend Java Threads Settings" ) ;
152
+ generateEIInformationBasedOnList ( data . email , "Eiffel Intelligence Backend E-Mail Settings" ) ;
153
+ generateEIInformationBasedOnList ( data . mailServerValues , "Eiffel Intelligence Backend SMTP Settings" ) ;
154
+ generateEIInformationBasedOnList ( data . waitList , "Eiffel Intelligence Backend WaitList settings" ) ;
155
+ generateEIInformationBasedOnList ( [ data . objectHandler ] , "Eiffel Intelligence Backend ObjectHandler Settings" ) ;
156
+ generateEIInformationBasedOnList ( [ data . subscriptionHandler ] , "Eiffel Intelligence Backend SubscriptionHandler Settings" ) ;
157
+ generateEIInformationBasedOnList ( [ data . informSubscription ] , "Eiffel Intelligence Backend InformSubscription Settings" ) ;
158
+ generateEIInformationBasedOnList ( [ data . erUrl ] , "Eiffel Intelligence Backend EventRepository Url" ) ;
159
+ generateEIInformationBasedOnList ( [ data . ldap ] , "Eiffel Intelligence Backend LDAP Settings" ) ;
144
160
} ,
145
- complete : function ( XMLHttpRequest , textStatus ) {
146
- var data = JSON . parse ( XMLHttpRequest . responseText ) ;
147
-
148
- generateGeneralEiInfo ( data ) ;
149
-
150
- generateEIInformationBasedOnList ( data . rabbitmq , "Eiffel Intelligence Connected RabbitMq Instances" ) ;
151
- generateEIInformationBasedOnList ( data . mongodb , "Eiffel Intelligence Connected MongoDb Instances" ) ;
152
- generateEIInformationBasedOnList ( data . threads , "Eiffel Intelligence Backend Java Threads Settings" ) ;
153
- generateEIInformationBasedOnList ( data . email , "Eiffel Intelligence Backend E-Mail Settings" ) ;
154
- generateEIInformationBasedOnList ( data . mailServerValues , "Eiffel Intelligence Backend SMTP Settings" ) ;
155
- generateEIInformationBasedOnList ( data . waitList , "Eiffel Intelligence Backend WaitList settings" ) ;
156
- generateEIInformationBasedOnList ( [ data . objectHandler ] , "Eiffel Intelligence Backend ObjectHandler Settings" ) ;
157
- generateEIInformationBasedOnList ( [ data . subscriptionHandler ] , "Eiffel Intelligence Backend SubscriptionHandler Settings" ) ;
158
- generateEIInformationBasedOnList ( [ data . informSubscription ] , "Eiffel Intelligence Backend InformSubscription Settings" ) ;
159
- generateEIInformationBasedOnList ( [ data . erUrl ] , "Eiffel Intelligence Backend EventRepository Url" ) ;
160
- generateEIInformationBasedOnList ( [ data . ldap ] , "Eiffel Intelligence Backend LDAP Settings" ) ;
161
- }
161
+ complete : function ( XMLHttpRequest , textStatus ) { }
162
162
} ) ;
163
-
164
163
}
165
164
166
165
getInstanceInfo ( ) ;
0 commit comments