File tree Expand file tree Collapse file tree 3 files changed +33
-14
lines changed
Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate
Shared/Components/GenericSectionErrorState Expand file tree Collapse file tree 3 files changed +33
-14
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,11 @@ export interface SelectedChartDetailsType {
129
129
selectedChart : DeploymentChartVersionType
130
130
}
131
131
132
+ export enum PipelineMigratedFromType {
133
+ HELM_RELEASE = 'helmRelease' ,
134
+ ARGO_APPLICATION = 'argoApplication' ,
135
+ }
136
+
132
137
interface EnvironmentConfigType {
133
138
id : number
134
139
status : number
@@ -142,13 +147,18 @@ interface BaseDeploymentTemplateConfigState {
142
147
isOverridden ?: never
143
148
environmentConfig ?: never
144
149
mergeStrategy ?: never
150
+ migratedFrom ?: never
145
151
}
146
152
147
153
type EnvironmentOverrideDeploymentTemplateConfigState = {
148
154
chartConfig ?: never
149
155
isOverridden : boolean
150
156
environmentConfig : EnvironmentConfigType
151
157
mergeStrategy : OverrideMergeStrategyType
158
+ /**
159
+ * Readonly flag to show the user that the pipeline is migrated from external app to devtron, and can't change its version or delete override
160
+ */
161
+ migratedFrom : PipelineMigratedFromType
152
162
}
153
163
154
164
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import { ComponentSizeType } from '@Shared/constants'
19
19
import { Progressing } from '@Common/Progressing'
20
20
import { ReactComponent as ErrorIcon } from '@Icons/ic-error-exclamation.svg'
21
21
import { ReactComponent as ICInfoOutline } from '@Icons/ic-info-outline.svg'
22
- import { ReactComponent as ICArrowCounterClockwise } from '@Icons/ic-arrow-counter-clockwise.svg'
23
22
import { Button , ButtonVariantType } from '../Button'
24
23
import { GenericSectionErrorStateProps } from './types'
25
24
@@ -74,7 +73,6 @@ const GenericSectionErrorState = ({
74
73
75
74
{ reload && (
76
75
< Button
77
- startIcon = { < ICArrowCounterClockwise className = "dc__flip" /> }
78
76
text = { buttonText }
79
77
onClick = { reload }
80
78
variant = { ButtonVariantType . text }
Original file line number Diff line number Diff line change 17
17
import { ReactNode } from 'react'
18
18
import { ProgressingProps } from '@Common/Types'
19
19
20
- export interface GenericSectionErrorStateProps {
20
+ export type GenericSectionErrorStateProps = {
21
21
/**
22
22
* Handler for reloading the section
23
23
*/
@@ -48,14 +48,25 @@ export interface GenericSectionErrorStateProps {
48
48
* to be applied on parent div
49
49
*/
50
50
rootClassName ?: string
51
- /**
52
- * If provided, would render the Progressing component with given props instead of error icon
53
- */
54
- progressingProps ?: ProgressingProps
55
- /**
56
- * If true, info icon would be used instead of error
57
- *
58
- * @default false
59
- */
60
- useInfoIcon ?: boolean
61
- }
51
+ } & (
52
+ | {
53
+ /**
54
+ * If provided, would render the Progressing component with given props instead of error icon
55
+ */
56
+ progressingProps : ProgressingProps
57
+ useInfoIcon ?: never
58
+ }
59
+ | {
60
+ progressingProps ?: never
61
+ /**
62
+ * If true, info icon would be used instead of error
63
+ *
64
+ * @default false
65
+ */
66
+ useInfoIcon : boolean
67
+ }
68
+ | {
69
+ progressingProps ?: never
70
+ useInfoIcon ?: never
71
+ }
72
+ )
You can’t perform that action at this time.
0 commit comments