-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scenario templates #5490
scenario templates #5490
Conversation
packages/client/hmi-client/src/components/workflow/scenario-templates/scenario-template.ts
Outdated
Show resolved
Hide resolved
packages/client/hmi-client/src/components/project/tera-resource-sidebar.vue
Show resolved
Hide resolved
packages/client/hmi-client/src/components/workflow/tera-create-workflow-modal.vue
Outdated
Show resolved
Hide resolved
packages/client/hmi-client/src/components/workflow/tera-create-workflow-modal.vue
Show resolved
Hide resolved
packages/client/hmi-client/src/components/workflow/tera-create-workflow-modal.vue
Outdated
Show resolved
Hide resolved
packages/client/hmi-client/src/components/workflow/tera-create-workflow-modal.vue
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a really convulated and strange way to create templates.
I'm not part of that feature planning, so I will restrain to approve on this PR.
I will not comment on how the forms layout has been made, but it will need some cleaning up once this is done and fully functional.
packages/client/hmi-client/src/components/project/tera-resource-sidebar.vue
Outdated
Show resolved
Hide resolved
packages/client/hmi-client/src/components/workflow/scenario-templates/scenario-template.ts
Outdated
Show resolved
Hide resolved
...mponents/workflow/scenario-templates/situational-awareness/situational-awareness-template.ts
Outdated
Show resolved
Hide resolved
...ts/workflow/scenario-templates/situational-awareness/tera-situational-awareness-template.vue
Show resolved
Hide resolved
...ts/workflow/scenario-templates/situational-awareness/tera-situational-awareness-template.vue
Outdated
Show resolved
Hide resolved
...mponents/workflow/scenario-templates/situational-awareness/situational-awareness-template.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is a great start
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweet
const modelOptions: any[] = model.model.states; | ||
|
||
model.semantics?.ode.observables?.forEach((o) => { | ||
modelOptions.push(o); | ||
}); | ||
modelStateOptions.value = modelOptions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const modelOptions: any[] = model.model.states; | |
model.semantics?.ode.observables?.forEach((o) => { | |
modelOptions.push(o); | |
}); | |
modelStateOptions.value = modelOptions; | |
modelStateOptions.value = [...model.model.states, ...model.semantics?.ode.observables]; |
Description
templates:
TODO: