Allocation {{model.name}}
{{model.clientStatus}}{{model.id}}
{{#if model.isRunning}}
{{two-step-button
data-test-stop
idleText="Stop"
cancelText="Cancel"
confirmText="Yes, Stop"
confirmationMessage="Are you sure? This will reschedule the allocation on a different client."
awaitingConfirmation=stopAllocation.isRunning
disabled=(or stopAllocation.isRunning restartAllocation.isRunning)
onConfirm=(perform stopAllocation)}}
{{two-step-button
data-test-restart
idleText="Restart"
cancelText="Cancel"
confirmText="Yes, Restart"
confirmationMessage="Are you sure? This will restart the allocation in-place."
awaitingConfirmation=restartAllocation.isRunning
disabled=(or stopAllocation.isRunning restartAllocation.isRunning)
onConfirm=(perform restartAllocation)}}
{{/if}}