chore: options
This commit is contained in:
parent
e60742b510
commit
cf44d3609f
|
@ -54,6 +54,10 @@ export default class Behaved extends decorate(Trait) {
|
||||||
currentRoutine: {
|
currentRoutine: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
label: 'Current routine',
|
label: 'Current routine',
|
||||||
|
options: (entity) => (
|
||||||
|
Object.keys(entity.traitInstance('behaved').params.routines)
|
||||||
|
.reduce((r, key) => ({...r, [key]: key}), {})
|
||||||
|
),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user