Skip to content

Commit 96ad44a

Browse files
committed
feat: add workflowCacheConfig ciPipeline types
1 parent 851f2f5 commit 96ad44a

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

src/Common/CIPipeline.Types.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ export interface DockerConfigOverrideType {
222222
ciBuildConfig: CIBuildConfigType
223223
}
224224

225+
export enum WORKFLOW_CACHE_CONFIG_ENUM {
226+
INHERIT = 'INHERIT',
227+
OVERRIDE = 'OVERRIDE',
228+
}
229+
225230
export interface FormType {
226231
name: string
227232
args: { key: string; value: string }[]
@@ -254,6 +259,11 @@ export interface FormType {
254259
isDockerConfigOverridden?: boolean
255260
dockerConfigOverride?: DockerConfigOverrideType
256261
isOffendingMandatoryPlugin?: boolean
262+
workflowCacheConfig?: {
263+
type: WORKFLOW_CACHE_CONFIG_ENUM
264+
value: boolean
265+
globalValue: boolean
266+
}
257267
}
258268

259269
export interface ErrorObj {

src/Common/Toggle/Toggle.scss

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,31 @@ input:focus + .toggle__slider {
120120
}
121121
}
122122
}
123+
124+
.dc__toggle-square-toggle--h20 {
125+
.toggle__slider {
126+
border-color: var(--color);
127+
background-color: var(--color) !important;
128+
129+
&:before {
130+
background-color: transparent;
131+
}
132+
133+
&.with-icon svg {
134+
height: 18px;
135+
width: 18px;
136+
margin-top: 1px;
137+
background-color: var(--N0);
138+
left: 0;
139+
padding: 2px;
140+
border-radius: 3px;
141+
}
142+
}
143+
144+
input:checked + .toggle__slider {
145+
&.with-icon svg {
146+
left: -10px;
147+
background-color: var(--N0);
148+
}
149+
}
150+
}

0 commit comments

Comments
 (0)