fieldset: make component name configurable
This commit is contained in:
parent
80626c3d01
commit
7bba4a56b0
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,7 @@ const appdata = {
|
|||
|
||||
function Data(name: string): object {
|
||||
const comp = {
|
||||
name: name,
|
||||
data: {},
|
||||
save
|
||||
}
|
||||
|
@ -75,6 +76,7 @@ function handle(msg) {
|
|||
const data = JSON.parse(msg.payload)
|
||||
const [ domain, action, class_, item ] = msg.path.split('/')
|
||||
//console.log('msgbase: ', domain, action, class_, item)
|
||||
// TODO: check message parts (using default values), select handler fct
|
||||
Object.assign(this.components[class_].data, data)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue