Skip to content

Commit

Permalink
feat: add checkbox to display managed modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mrCherry97 committed Oct 22, 2024
1 parent c7863ca commit 39045f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,7 @@ kyma-modules:
documentation: Documentation
no-version: No version available
channel-overridden: Overridden
managed: Managed
beta: Beta
beta-alert: "CAUTION: The Service Level Agreements (SLAs) and Support obligations do not apply to Beta modules and functionalities. If Beta modules or functionalities directly or indirectly affect other modules, the Service Level Agreements and Support for these modules are limited to priority levels P3 (Medium) or P4 (Low). Thus, Beta releases are not intended for use in customer production environments."
change: Change
Expand Down
7 changes: 6 additions & 1 deletion src/components/KymaModules/KymaModulesCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { ForceUpdateModalContent } from 'shared/ResourceForm/ForceUpdateModalCon

import {
Button,
CheckBox,
FlexBox,
Label,
MessageBox,
Expand Down Expand Up @@ -169,7 +170,7 @@ export default function KymaModulesCreate({ resource, ...props }) {
const index = selectedModules?.findIndex(selectedModule => {
return selectedModule.name === module?.name;
});

console.log(module);
const mod = (
<FlexBox
direction="Column"
Expand Down Expand Up @@ -219,6 +220,10 @@ export default function KymaModulesCreate({ resource, ...props }) {
</Option>
))}
</Select>
<CheckBox
text={t('kyma-modules.managed')}
checked={findSpec(module.name)?.managed}
/>
</FlexBox>
);
modulesList.push(mod);
Expand Down

0 comments on commit 39045f6

Please sign in to comment.