From c7d2fb1d2c27662ee784181937e84483a7ad371b Mon Sep 17 00:00:00 2001 From: Kyle Morel Date: Wed, 12 Apr 2023 14:16:01 -0700 Subject: [PATCH 1/3] Disable Key field for updates --- frontend/src/components/form/TextInput.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/form/TextInput.vue b/frontend/src/components/form/TextInput.vue index 0b15f614..b1f10bf6 100644 --- a/frontend/src/components/form/TextInput.vue +++ b/frontend/src/components/form/TextInput.vue @@ -10,13 +10,15 @@ type Props = { label?: string; name: string; placeholder?: string; + disabled?: boolean; }; const props = withDefaults(defineProps(), { helpText: '', type: 'text', label: '', - placeholder: '' + placeholder: '', + disabled: false }); const { errorMessage, value } = useField(toRef(props, 'name')); @@ -31,6 +33,7 @@ const { errorMessage, value } = useField(toRef(props, 'name')); :name="name" :placeholder="placeholder" :class="{ 'p-invalid': errorMessage }" + :disabled="disabled" /> {{ helpText }} Date: Wed, 12 Apr 2023 14:16:14 -0700 Subject: [PATCH 2/3] Don't hide modal on failure --- frontend/src/components/bucket/BucketConfigForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/bucket/BucketConfigForm.vue b/frontend/src/components/bucket/BucketConfigForm.vue index 40067c23..6c40f193 100644 --- a/frontend/src/components/bucket/BucketConfigForm.vue +++ b/frontend/src/components/bucket/BucketConfigForm.vue @@ -86,7 +86,6 @@ const onSubmit = async (values: any) => { } ); } catch (error: any) { - emit('cancel-bucket-config'); toast.add( { severity: 'error', @@ -145,6 +144,7 @@ const onCancel = () => { label="Key" placeholder="directory" help-text="An optional path prefix within a bucket. The path will be created if it doesn't already exist." + :disabled="!!props.bucket" />