2024-02-14 21:45:59 +00:00
|
|
|
import { useCurrentUser } from '@/react/hooks/useUser';
|
|
|
|
|
|
|
|
import { InsightsBox } from '@@/InsightsBox';
|
|
|
|
import { Link } from '@@/Link';
|
|
|
|
|
|
|
|
export function StackNameLabelInsight() {
|
2024-02-15 11:29:55 +00:00
|
|
|
const { isPureAdmin } = useCurrentUser();
|
2024-02-14 21:45:59 +00:00
|
|
|
const insightsBoxContent = (
|
|
|
|
<>
|
|
|
|
The stack field below was previously labelled 'Name' but, in
|
|
|
|
fact, it's always been the stack name (hence the relabelling).
|
2024-02-15 11:29:55 +00:00
|
|
|
{isPureAdmin && (
|
2024-02-14 21:45:59 +00:00
|
|
|
<>
|
|
|
|
<br />
|
|
|
|
Kubernetes Stacks functionality can be turned off entirely via{' '}
|
2024-04-11 00:11:38 +00:00
|
|
|
<Link
|
|
|
|
to="portainer.settings"
|
|
|
|
target="_blank"
|
|
|
|
data-cy="k8s-deploy-settings-link"
|
|
|
|
>
|
2024-02-14 21:45:59 +00:00
|
|
|
Kubernetes Settings
|
|
|
|
</Link>
|
|
|
|
.
|
|
|
|
</>
|
|
|
|
)}
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<InsightsBox
|
|
|
|
type="slim"
|
|
|
|
header="Stack"
|
|
|
|
content={insightsBoxContent}
|
|
|
|
insightCloseId="k8s-stacks-name"
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|