Skip to content

Commit

Permalink
Merge branch 'feature/ZKUI-288/support-preferred-read-location-transi…
Browse files Browse the repository at this point in the history
…ent-bucket' into q/1.6
  • Loading branch information
bert-e committed Nov 25, 2022
2 parents 0b5bb20 + cf0c6c4 commit f32e5c2
Show file tree
Hide file tree
Showing 9 changed files with 209 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ export const storageOptions: Record<LocationTypeKey, StorageOptionValues> = {
supportsReplicationSource: true,
hasIcon: false,
checkCapability: 'locationTypeSproxyd',
hidden: true,
},
'location-wasabi-v1': {
name: 'Wasabi',
Expand Down
3 changes: 2 additions & 1 deletion src/react/backend/location/LocationOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ function LocationOptions(props: Props) {
<Checkbox
id="isTransientCheckbox"
checked={isTransient}
label='Delete objects after successful replication when checked'
label="Delete objects after successful replication when checked"
onChange={props.onChange}
name="isTransient"
/>
}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/react/workflow/ConfigurationTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ function EditForm({
</Stack>
}
>
<FormSection forceLabelWidth={convertRemToPixels(10)}>
<FormSection forceLabelWidth={convertRemToPixels(12)}>
<FormGroup
required
label="Rule Type"
Expand All @@ -681,7 +681,7 @@ function EditForm({
/>
</FormSection>
<FormSection
forceLabelWidth={convertRemToPixels(10)}
forceLabelWidth={convertRemToPixels(12)}
title={{ name: 'General' }}
>
{/* The required prop is a little hacky to remove the "optional" label of FormSection */}
Expand Down
4 changes: 3 additions & 1 deletion src/react/workflow/CreateWorkflow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useHistory } from 'react-router';
import ReplicationForm, {
disallowedPrefixes,
GeneralReplicationGroup,
isTransientLocation,
replicationSchema,
} from './ReplicationForm';
import { useMutation, useQuery, useQueryClient } from 'react-query';
Expand Down Expand Up @@ -135,6 +136,7 @@ const CreateWorkflow = () => {
unallowedBucketName,
disPrefixes,
prefixMandatory,
isTransientLocation(bucketList, locations, bucketName),
),
),
otherwise: Joi.valid(),
Expand Down Expand Up @@ -342,7 +344,7 @@ const CreateWorkflow = () => {
>
<FormSection
title={{ name: 'General' }}
forceLabelWidth={convertRemToPixels(10)}
forceLabelWidth={convertRemToPixels(12)}
>
<FormGroup
required
Expand Down
2 changes: 1 addition & 1 deletion src/react/workflow/ExpirationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function GeneralExpirationGroup({
}

export function ExpirationForm({ bucketList, locations, prefix = '' }: Props) {
const forceLabelWidth = convertRemToPixels(10);
const forceLabelWidth = convertRemToPixels(12);
const methods = useFormContext();
const { register, control, watch, getValues, setValue, trigger } = methods;
const { errors: formErrors } = methods.formState;
Expand Down
Loading

0 comments on commit f32e5c2

Please sign in to comment.