mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
Wire up the scale action on the task group page
This commit is contained in:
@@ -54,4 +54,9 @@ export default class TaskGroupController extends Controller.extend(
|
||||
gotoAllocation(allocation) {
|
||||
this.transitionToRoute('allocations.allocation', allocation);
|
||||
}
|
||||
|
||||
@action
|
||||
scaleTaskGroup(count) {
|
||||
return this.model.scale(count);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
@max={{model.scaling.max}}
|
||||
@value={{model.count}}
|
||||
@class="is-primary is-small"
|
||||
@disabled={{or model.job.runningDeployment (cannot "scale job")}}>
|
||||
@disabled={{or model.job.runningDeployment (cannot "scale job")}}
|
||||
@onChange={{action "scaleTaskGroup"}}>
|
||||
Count
|
||||
</StepperInput>
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user