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

feat(edge/templates): introduce edge app templates [EE-6209] (#10480)

This commit is contained in:
Chaim Lev-Ari 2023-11-14 14:54:44 +02:00 committed by GitHub
parent 95d96e1164
commit e1e90c9c1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 1142 additions and 365 deletions

View file

@ -18,6 +18,7 @@ interface Props {
error?: string | string[];
horizontal?: boolean;
isGroupVisible?(group: EdgeGroup): boolean;
required?: boolean;
}
export function EdgeGroupsSelector({
@ -26,6 +27,7 @@ export function EdgeGroupsSelector({
error,
horizontal,
isGroupVisible = () => true,
required,
}: Props) {
const selector = (
<InnerSelector
@ -36,11 +38,11 @@ export function EdgeGroupsSelector({
);
return horizontal ? (
<FormControl errors={error} label="Edge Groups">
<FormControl errors={error} label="Edge Groups" required={required}>
{selector}
</FormControl>
) : (
<FormSection title="Edge Groups">
<FormSection title={`Edge Groups${required ? ' *' : ''}`}>
<div className="form-group">
<div className="col-sm-12">{selector} </div>
{error && (