Skip to content
Snippets Groups Projects
Commit 1daf749e authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

Make weblog accessible in failed/error states.

parent 6a319feb
No related branches found
No related tags found
3 merge requests!1059Catchup 2.7 with main,!1058Draft: Rebase 2.7 on main,!1043Make weblog accessible in failed/error states.
Pipeline #6483 passed
......@@ -27,6 +27,10 @@
</a>
<app-editor *ngIf="shouldHaveWeblog() && !capabilityRequest.ingested && capability.requires_qa" style="margin-left: 150px" modalTitleText="Edit QA Notes" [textToEdit]="qaNotes" (editorOpenEvent)="getQaNotesURL()" (newEditEvent)="emitEditEventToParent($event)"><span class="fas fa-edit"></span> Edit QA Notes</app-editor>
</div>
<div id="warning-container" class="d-flex justify-content-center py-3" *ngIf="shouldHaveWeblog &&
(currentVersion.current_execution.state_name === 'Failed' || currentVersion.current_execution.state_name === 'Error')">
<em>Warning: This request is in an Error or Failed state, weblog might not exist.</em>
</div>
</div>
<ng-template #processingNotCompleteMessage> <em>No actions available. This version is still processing or has not been submitted.</em> </ng-template>
......
......@@ -22,7 +22,6 @@ import { Capability } from "../../../../model/capability";
import {CapabilityVersion} from "../../../../model/capability-version";
import {WorkflowService} from "../../../../services/workflow.service";
import {CapabilityRequestService} from "../../../../services/capability-request.service";
import { JsonObject } from "@angular/compiler-cli/ngcc/src/packages/entry_point";
@Component({
selector: "app-capability-data-access",
......@@ -89,7 +88,7 @@ export class CapabilityDataAccessComponent implements OnInit {
const request = this.capabilityRequest;
const version = this.currentVersion;
const names = ["std_calibration", "std_cms_imaging", "restore_cms", "std_restore_imaging"];
const states = ["Awaiting QA", "AoD Review", "Complete", "Failed", "QA Closed"];
const states = ["Awaiting QA", "AoD Review", "Complete", "Error", "Failed", "QA Closed"];
if (states.includes(version.current_execution.state_name)) {
return names.includes(request.capability_name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment