Skip to content

Commit

Permalink
fix: add inputPlaceholder props
Browse files Browse the repository at this point in the history
  • Loading branch information
caro3801 committed Aug 27, 2024
1 parent ffcec3b commit d3e8c6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AppModal/AppModalPrompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defineProps({
type: String,
default: 'text'
},
placeholder: {
inputPlaceholder: {
type: String,
default: null
},
Expand Down Expand Up @@ -53,7 +53,7 @@ const onOk = () => {
:invalid-feedback="inputInvalidFeedback"
:state="inputState"
>
<b-form-input id="input-1" v-model="inputValue" :type="inputType" :placeholder="placeholder" />
<b-form-input id="input-1" v-model="inputValue" :type="inputType" :placeholder="inputPlaceholder" />
</b-form-group>
<p class="text-secondary-emphasis">
<slot name="description">{{ description }}</slot>
Expand Down
1 change: 1 addition & 0 deletions src/stories/components/AppModal/AppModalPrompt.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const InputError = {
okTitle: 'Create alert',
cancelTitle: 'Cancel',
inputValue: 'bad alert name',
inputPlaceholder: 'Type here',
description: 'You will find your saved searches in the left menu in Explore > Alerts',
inputState: false,
inputInvalidFeedback: 'Invalid alert name'
Expand Down

0 comments on commit d3e8c6c

Please sign in to comment.