mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw-ui.git
synced 2025-10-31 18:57:46 +00:00
Fix for getting gw ui during login
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ucentral-client",
|
"name": "ucentral-client",
|
||||||
"version": "2.2.6",
|
"version": "2.2.7",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ucentral-client",
|
"name": "ucentral-client",
|
||||||
"version": "2.2.6",
|
"version": "2.2.7",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@coreui/coreui": "^3.4.0",
|
"@coreui/coreui": "^3.4.0",
|
||||||
"@coreui/icons": "^2.0.1",
|
"@coreui/icons": "^2.0.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ucentral-client",
|
"name": "ucentral-client",
|
||||||
"version": "2.2.6",
|
"version": "2.2.7",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@coreui/coreui": "^3.4.0",
|
"@coreui/coreui": "^3.4.0",
|
||||||
"@coreui/icons": "^2.0.1",
|
"@coreui/icons": "^2.0.1",
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ const Login = () => {
|
|||||||
for (const endpoint of response.data.endpoints) {
|
for (const endpoint of response.data.endpoints) {
|
||||||
endpoints[endpoint.type] = endpoint.uri;
|
endpoints[endpoint.type] = endpoint.uri;
|
||||||
}
|
}
|
||||||
getGatewayUIUrl(token, endpoints.owgw);
|
if (endpoints.owgw) getGatewayUIUrl(token, endpoints.owgw);
|
||||||
setItem('gateway_endpoints', JSON.stringify(endpoints));
|
setItem('gateway_endpoints', JSON.stringify(endpoints));
|
||||||
setEndpoints(endpoints);
|
setEndpoints(endpoints);
|
||||||
setCurrentToken(token);
|
setCurrentToken(token);
|
||||||
@@ -345,6 +345,7 @@ const Login = () => {
|
|||||||
for (const endpoint of response.data.endpoints) {
|
for (const endpoint of response.data.endpoints) {
|
||||||
endpoints[endpoint.type] = endpoint.uri;
|
endpoints[endpoint.type] = endpoint.uri;
|
||||||
}
|
}
|
||||||
|
if (endpoints.owgw) getGatewayUIUrl(token, endpoints.owgw);
|
||||||
setItem('gateway_endpoints', JSON.stringify(endpoints));
|
setItem('gateway_endpoints', JSON.stringify(endpoints));
|
||||||
setEndpoints(endpoints);
|
setEndpoints(endpoints);
|
||||||
setCurrentToken(token);
|
setCurrentToken(token);
|
||||||
|
|||||||
Reference in New Issue
Block a user