chore: options

This commit is contained in:
cha0s 2020-06-25 10:50:15 -05:00
parent e60742b510
commit cf44d3609f

View File

@ -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}), {})
),
}, },
} }
} }