mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
[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:
3
.changelog/14071.txt
Normal file
3
.changelog/14071.txt
Normal file
@@ -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);
|
||||
this.terminal.writeln('Select a task to start your session.');
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user