Skip to content

Commit

Permalink
Different mesage when there are not tasks in a job
Browse files Browse the repository at this point in the history
  • Loading branch information
geovannyAvelar committed Aug 9, 2022
1 parent 939d643 commit 6bd9962
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ui/app/controllers/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ 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(
'Run a job and then select a task to start your session.'
);
}
}

@alias('model.allocations') allocations;
Expand Down

0 comments on commit 6bd9962

Please sign in to comment.