Skip to content

Commit 26b86ed

Browse files
committed
feat: return false for ai button if flag is false
1 parent c8b013d commit 26b86ed

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/components/common/helpers/Helpers.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,9 @@ export const convertToOptionsList = (
785785
}
786786

787787
export const importComponentFromFELibrary = (componentName: string, defaultComponent?, type?: 'function') => {
788+
if (componentName === 'ExplainWithAIButton') {
789+
return null
790+
}
788791
try {
789792
let component = defaultComponent || null
790793
if (!module) {

src/components/v2/appDetails/k8Resource/k8resources.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
grid-template-columns: 1fr 80px 20px;
3030
column-gap: 12px;
3131

32+
&.explain-ai-button {
33+
grid-template-columns: 1fr 80px 32px 20px !important;
34+
}
35+
3236
&--col-6 {
3337
grid-template-columns: 1fr 50px 100px 60px 80px 20px;
3438

0 commit comments

Comments
 (0)