Skip to content

Commit

Permalink
Merge pull request #927 from nextcloud-libraries/fix/missing-defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv committed Aug 23, 2023
2 parents 01722ce + da39d28 commit c25014d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/components/DialogButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ import { NcButton } from '@nextcloud/vue'
// with vue 3.3:
// const props = defineProps<IDialogButton>()
const props = defineProps<{
const props = withDefaults(defineProps<{
callback: IDialogButton['callback'],
label: IDialogButton['label'],
icon: IDialogButton['icon'],
type: IDialogButton['type'],
}>()
icon?: IDialogButton['icon'],
type?: IDialogButton['type'],
}>(), {
icon: undefined,
type: 'secondary',
})
const emit = defineEmits<(e: 'click', event: MouseEvent) => void>()
Expand Down

0 comments on commit c25014d

Please sign in to comment.