Almost completely rewrite UiItems

This commit is contained in:
uwap 2017-11-26 16:49:41 +01:00
parent 9cc827d5a6
commit 6c7ea9dfb3
8 changed files with 245 additions and 21 deletions

View file

@ -87,6 +87,9 @@ class App extends React.Component<AppProps & Classes, AppState> {
}
changeState(topic: string, value: any) {
// this.receiveMessage(this.props.config.topics[topic].state, String(this.props.config.topics[topic].values[value] || value));
// return;
//
const rawTopic = this.props.config.topics[topic].command;
if (rawTopic == null) {
return;