4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

Redux Store Update

This commit is contained in:
AlphaX-Projects 2022-02-15 19:11:33 +01:00 committed by GitHub
parent 8ca3f10162
commit 4bd0878842
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,9 +6,6 @@ let haveRegisteredNodeManagement = false
parentEpml.ready().then(() => {
// THOUGHTS: DONE: The request to register urls should be made once...
// pluginUrlsConf
let pluginUrlsConf = [
{
@ -116,12 +113,13 @@ parentEpml.ready().then(() => {
parentEpml.request('registerUrl', pluginInfo)
}
const checkNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node]
parentEpml.subscribe('config', c => {
config = JSON.parse(c)
// Only register node management if node management is enabled and it hasn't already been registered
if (!haveRegisteredNodeManagement && config.user.knownNodes[config.user.node].enableManagement) {
if (!haveRegisteredNodeManagement && checkNode.enableManagement) {
haveRegisteredNodeManagement = true
let nodeManagementConf = {