diff --git a/src/components/ControlPanel.js b/src/components/ControlPanel.js
index 4788689..499cae2 100644
--- a/src/components/ControlPanel.js
+++ b/src/components/ControlPanel.js
@@ -264,7 +264,7 @@ const ControlPanel = observer(function ControlPanel() {
}
{user?.id &&
Logout
+ href={`${user?.graphql_admin_url}/auth/logout?redirect_to=${window.location.href}`}>Logout
}
diff --git a/src/components/ProfileComponent.js b/src/components/ProfileComponent.js
index b706322..ac18092 100644
--- a/src/components/ProfileComponent.js
+++ b/src/components/ProfileComponent.js
@@ -26,10 +26,10 @@ const [toastLink, setToastLink] = useState(window.location.href)
log
in or
- register
+ register
Logging in will allow you to access all the features and keep track of your activities.
- ), {autoClose: 2000});
+ ), {autoClose: 3000});
setToastShown(true)
}
}, 2000);
@@ -70,7 +70,7 @@ const [toastLink, setToastLink] = useState(window.location.href)
API
key
Logout
+ href={`${user?.graphql_admin_url}/auth/logout?redirect_to=${window.location.href}`}>Logout
);
diff --git a/src/components/bitqueditor/components/WidgetView.js b/src/components/bitqueditor/components/WidgetView.js
index 45af25c..536819b 100644
--- a/src/components/bitqueditor/components/WidgetView.js
+++ b/src/components/bitqueditor/components/WidgetView.js
@@ -27,6 +27,7 @@ const WidgetView = observer(function WidgetView({ children, widget, dataSource,
if (explicitHeight) {
widget = widget.replace(explicitHeight[0], '')
}
+ console.log('widget',widget)
const ChartWidget = eval(`(${widget})`)
const chartWidgetInstance = new ChartWidget(refChart.current, dataSource.historyDataSource, dataSource.subscriptionDataSource)
await chartWidgetInstance.init()
diff --git a/src/server/endPoints.js b/src/server/endPoints.js
index abbce81..b301a7a 100644
--- a/src/server/endPoints.js
+++ b/src/server/endPoints.js
@@ -877,6 +877,7 @@ module.exports = function (app, db, redisClient) {
})
app.get('/api/getwidgetconfig/:id', async (req, res) => {
const widgetConfig = await redisClient.get(req.params.id)
+ console.log('widgetConfig',widgetConfig)
if (widgetConfig !== null) {
console.log('there is some widgetconfig')
res.status(200).send(JSON.parse(widgetConfig))
diff --git a/src/store/queriesStore.js b/src/store/queriesStore.js
index 58df2b5..4959459 100644
--- a/src/store/queriesStore.js
+++ b/src/store/queriesStore.js
@@ -43,7 +43,7 @@ class User {
// log
// in or
- // register
+ // register
// Logging in will allow you to access all the features and keep track of your activities.
//
// ), {autoClose: 2000})