4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00
This commit is contained in:
AlphaX-Projects 2022-03-09 02:47:27 -08:00 committed by GitHub
parent b0b19b77eb
commit d17bc3ce69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,7 @@ import { EpmlStream } from 'epml'
const LOGIN_STREAM_NAME = 'logged_in'
const CONFIG_STREAM_NAME = 'config'
const SELECTED_ADDRESS_STREAM_NAME = 'selected_address'
// const APP_INFO_STATE = 'app_info_state'
const APP_INFO_STATE = 'app_info_state'
const CHAT_HEADS_STREAM_NAME = 'chat_heads'
const NODE_CONFIG_STREAM_NAME = 'node_config'
const COPY_MENU_SWITCH = 'copy_menu_switch'
@ -13,7 +13,7 @@ const FRAME_PASTE_MENU_SWITCH = 'frame_paste_menu_switch'
export const loggedInStream = new EpmlStream(LOGIN_STREAM_NAME, () => store.getState().app.loggedIn)
export const configStream = new EpmlStream(CONFIG_STREAM_NAME, () => store.getState().config)
export const selectedAddressStream = new EpmlStream(SELECTED_ADDRESS_STREAM_NAME, () => store.getState().app.selectedAddress)
// export const appInfoStateStream = new EpmlStream(APP_INFO_STATE, () => store.getState().app.appInfo)
export const appInfoStateStream = new EpmlStream(APP_INFO_STATE, () => store.getState().app.appInfo)
export const chatHeadsStateStream = new EpmlStream(CHAT_HEADS_STREAM_NAME, () => store.getState().app.chatHeads)
export const nodeConfigStream = new EpmlStream(NODE_CONFIG_STREAM_NAME, () => store.getState().app.nodeConfig)
export const copyMenuSwitchStream = new EpmlStream(COPY_MENU_SWITCH, () => store.getState().app.copyMenuSwitch)
@ -59,8 +59,9 @@ store.subscribe(() => {
chatHeadsStateStream.emit(state.app.chatHeads)
}
// if (oldState.app.appInfo !== state.app.appInfo) {
// appInfoStateStream.emit(state.app.appInfo)
// }
if (oldState.app.appInfo !== state.app.appInfo) {
appInfoStateStream.emit(state.app.appInfo)
}
oldState = state
})

View File

@ -97,7 +97,7 @@ const obj4 = {
protocol: 'http',
domain: '127.0.0.1',
port: 62391,
enableManagement: false
enableManagement: true
}
const obj5 = {

View File

@ -17,7 +17,6 @@ const DEFAULT_INITIAL_STATE = {
},
user: {
language: 'english',
theme: 'light',
server: {},
node: 0,
knownNodes: [{}]