open-nomad/ui/app/templates/components/job-page/parts
Luiz Aoqui 758e85bc84
ui: fix an error when navigating to a task group (#12832)
Clicking in a task group row in the job details page would throw the
error:

Uncaught Error: You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route jobs.job.task-group. Missing params: name
    createParamHandlerInfo http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:4814
    applyToHandlers http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:4804
    applyToState http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:4801
    getTransitionByIntent http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:4843
    transitionByIntent http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:4836
    refresh http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:4885
    refresh http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:2254
    queryParamsDidChange http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:2326
    k http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:2423
    triggerEvent http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:2349
    fireQueryParamDidChange http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:4863
    getTransitionByIntent http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:4848
    transitionByIntent http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:4836
    doTransition http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:4853
    transitionTo http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:4882
    _doTransition http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:2392
    transitionTo http://localhost:4646/ui/assets/vendor-194b1e0d68d11ef7a4bf334eb30ba74d.js:2177
    gotoTaskGroup http://localhost:4646/ui/assets/nomad-ui-4a2c1941e03e60e1feef715f23cf268c.js:623
...

This was caused because the attribute being passed to the transitionTo
function was not the task group name, but the whole model.
2022-05-02 11:01:19 -04:00
..
body.hbs
children.hbs ui: prettify remaining files 2022-01-26 11:28:21 -05:00
das-recommendations.hbs feat: create job-page contextual component 2022-01-24 11:02:04 -05:00
error.hbs Add explicit this to templates (#8388) 2020-07-09 15:19:07 -05:00
job-client-status-summary.hbs refact: fix tests after contextual job page changes 2022-01-26 11:31:18 -05:00
latest-deployment.hbs make stop job message clearer (#12252) 2022-03-24 16:38:43 -04:00
meta.hbs Update job details box (#11288) 2021-10-12 16:36:10 -04:00
placement-failures.hbs Add explicit this to templates (#8388) 2020-07-09 15:19:07 -05:00
recent-allocations.hbs fix broken link to task-group in Recent Allocation table in jobs.job.index (#12765) 2022-04-28 14:02:15 -04:00
stats-box.hbs Upgrade Ember and friends 3.28 (#12215) 2022-03-08 12:28:36 -05:00
summary-legend-item.hbs styling: update styling to match new figma mocks 2022-01-14 10:14:44 -05:00
summary.hbs refact: fix tests after contextual job page changes 2022-01-26 11:31:18 -05:00
task-groups.hbs ui: fix an error when navigating to a task group (#12832) 2022-05-02 11:01:19 -04:00
title.hbs make stop job message clearer (#12252) 2022-03-24 16:38:43 -04:00