Skip to content

Commit

Permalink
feat(deck): make StageFailureMessage component overridable (backport #…
Browse files Browse the repository at this point in the history
…9994) (#10007)

* feat(deck): make StageFailureMessage component overridable (#9994)

(cherry picked from commit 39f70cc)

# Conflicts:
#	version.json

* chore(build): fix backport merge conflict

---------

Co-authored-by: Matt <[email protected]>
  • Loading branch information
mergify[bot] and mattgogerly committed Jun 21, 2023
1 parent b727bf5 commit 4ad1f06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/pipeline/details/StageFailureMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React from 'react';

import type { IExecutionStage, ITaskStep } from '../../domain';
import { EventBus } from '../../event/EventBus';
import { Overridable } from '../../overrideRegistry';
import { Markdown, robotToHuman } from '../../presentation';
import { ReactInjector } from '../../reactShims';
import { TrafficGuardHelperLink } from '../../task/TrafficGuardHelperLink';
Expand All @@ -27,6 +28,7 @@ export enum StageFailureMessages {
NO_REASON_PROVIDED = 'No reason provided.',
}

@Overridable('stageFailureMessage')
@UIRouterContext
export class StageFailureMessage extends React.Component<IStageFailureMessageProps, IStageFailureMessageState> {
public static defaultProps: Partial<IStageFailureMessageProps> = {
Expand Down

0 comments on commit 4ad1f06

Please sign in to comment.