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

feat(wizard): add edge form [EE-3000] (#6979)

This commit is contained in:
Chaim Lev-Ari 2022-06-01 07:28:31 +03:00 committed by GitHub
parent e686d64011
commit ac096dda46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 793 additions and 316 deletions

View file

@ -11,6 +11,7 @@ interface Props {
isDefaultHidden?: boolean;
label?: string;
tooltip?: string;
readonly?: boolean;
}
export const checkinIntervalOptions = [
@ -34,6 +35,7 @@ export const checkinIntervalOptions = [
export function EdgeCheckinIntervalField({
value,
readonly,
onChange,
isDefaultHidden = false,
label = 'Poll frequency',
@ -49,6 +51,7 @@ export function EdgeCheckinIntervalField({
onChange(parseInt(e.currentTarget.value, 10));
}}
options={options}
disabled={readonly}
/>
</FormControl>
);
@ -60,6 +63,7 @@ export const EdgeCheckinIntervalFieldAngular = r2a(EdgeCheckinIntervalField, [
'isDefaultHidden',
'tooltip',
'label',
'readonly',
]);
function useOptions(isDefaultHidden: boolean) {