1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

feat(oci): oci helm support [r8s-361] (#787)

This commit is contained in:
Ali 2025-07-13 10:37:43 +12:00 committed by GitHub
parent b6a6ce9aaf
commit 2697d6c5d7
80 changed files with 4264 additions and 812 deletions

View file

@ -51,3 +51,29 @@ export function NamespaceSelector({
</FormControl>
);
}
/** NamespacePortainerSelect is exported for use by angular views, so that the data-cy attribute is set correctly */
export function NamespacePortainerSelect({
value,
onChange,
isDisabled,
options,
}: {
value: string;
onChange: (value: string) => void;
isDisabled: boolean;
options: { label: string; value: string }[];
}) {
return (
<PortainerSelect
value={value}
options={options}
onChange={onChange}
disabled={isDisabled}
noOptionsMessage={() => 'No namespaces found'}
placeholder="No namespaces found" // will only show when there are no options
inputId="namespace-selector"
data-cy="namespace-select"
/>
);
}