1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(helm): helm actions [r8s-259] (#715)

Co-authored-by: James Player <james.player@portainer.io>
Co-authored-by: Cara Ryan <cara.ryan@portainer.io>
Co-authored-by: stevensbkang <skan070@gmail.com>
This commit is contained in:
Ali 2025-05-13 22:15:04 +12:00 committed by GitHub
parent dfa32b6755
commit 4ee349bd6b
117 changed files with 4161 additions and 696 deletions

View file

@ -5,13 +5,14 @@ import { Link } from '@/react/components/Link';
import { InsightsBox } from '@@/InsightsBox';
import { SearchBar } from '@@/datatables/SearchBar';
import { InlineLoader } from '@@/InlineLoader';
import { Chart } from '../types';
import { HelmTemplatesListItem } from './HelmTemplatesListItem';
interface Props {
loading: boolean;
isLoading: boolean;
charts?: Chart[];
selectAction: (chart: Chart) => void;
}
@ -70,7 +71,7 @@ function getFilteredCharts(
}
export function HelmTemplatesList({
loading,
isLoading,
charts = [],
selectAction,
}: Props) {
@ -159,16 +160,20 @@ export function HelmTemplatesList({
<div className="text-muted small mt-4">No Helm charts found</div>
)}
{loading && (
<div className="text-muted text-center">
Loading...
<div className="text-muted text-center">
Initial download of Helm charts can take a few minutes
</div>
{isLoading && (
<div className="flex flex-col">
<InlineLoader className="justify-center">
Loading helm charts...
</InlineLoader>
{charts.length === 0 && (
<div className="text-muted text-center">
Initial download of Helm charts can take a few minutes
</div>
)}
</div>
)}
{!loading && charts.length === 0 && (
{!isLoading && charts.length === 0 && (
<div className="text-muted text-center">
No helm charts available.
</div>