Skip to content
Snippets Groups Projects

ICSHWI-11696: Job status handling simplifications

Merged Zoltan Runyo requested to merge deployment-status-handling-ICSHWI-11696 into develop
Files
2
+ 6
4
@@ -153,16 +153,18 @@ export class AdHocCommand {
}
isFinished() {
return ["failed", "successful"].includes(this.command?.status);
return ["failed", "successful"].includes(
this.command?.status.toLowerCase()
);
}
wasSuccessful() {
return this.job?.status === "successful";
return this.job?.status.toLowerCase() === "successful";
}
message() {
const message = `The ${this.command.type} command ${
jobMessages[this.command?.status]
jobMessages[this.command?.status.toLowerCase()]
}`;
return message;
}
@@ -178,7 +180,7 @@ export class CommandStatus {
message() {
const message = `The ${this.command.type} command ${
jobMessages[this.command.status]
jobMessages[this.command.status.toLowerCase()]
}`;
return message;
}
Loading