[ui] Show a different message when there are no tasks in a job (#14071)
Different mesage when there are not tasks in a job
This commit is contained in:
parent
98022376be
commit
b5cf358212
|
@ -0,0 +1,3 @@
|
|||
```release-note:improvement
|
||||
ui: Display different message when trying to exec into a job with no task running.
|
||||
```
|
|
@ -47,7 +47,12 @@ export default class ExecController extends Controller {
|
|||
window.execTerminal = this.terminal; // Issue to improve: https://github.com/hashicorp/nomad/issues/7457
|
||||
|
||||
this.terminal.write(ANSI_UI_GRAY_400);
|
||||
|
||||
if (this.sortedTaskGroups.length > 0) {
|
||||
this.terminal.writeln('Select a task to start your session.');
|
||||
} else {
|
||||
this.terminal.writeln(`There are no tasks running for this job.`);
|
||||
}
|
||||
}
|
||||
|
||||
@alias('model.allocations') allocations;
|
||||
|
|
Loading…
Reference in New Issue