Skip to content

Commit

Permalink
Merge pull request #4731 from nextcloud-libraries/feat/2154/dialog
Browse files Browse the repository at this point in the history
[next] feat(NcDialog*): migrate to vue 3
  • Loading branch information
Pytal authored Oct 31, 2023
2 parents 3991f2a + bae936a commit 63549dd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/NcDialog/NcDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This component uses the `NcModal` under the hood for allowing users to create ge
<template>
<div>
<NcButton @click="showDialog = true">Show dialog</NcButton>
<NcDialog :open.sync="showDialog" name="Confirmation" message="Are you sure to proceed?" :buttons="buttons" />
<NcDialog v-model:open="showDialog" name="Confirmation" message="Are you sure to proceed?" :buttons="buttons" />
<p>Last response: {{ lastResponse }}</p>
</div>
</template>
Expand Down
6 changes: 3 additions & 3 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export { default as NcCounterBubble } from './NcCounterBubble/index.js'
export { default as NcDateTime } from './NcDateTime/index.js'
export { default as NcDateTimePicker } from './NcDateTimePicker/index.js'
export { default as NcDateTimePickerNative } from './NcDateTimePickerNative/index.js'
// export { default as NcDialog } from './NcDialog/index.js'
// export { default as NcDialogButton } from './NcDialogButton/index.js'
export { default as NcDialog } from './NcDialog/index.js'
export { default as NcDialogButton } from './NcDialogButton/index.js'
// Not exported on purpose
// export { default as NcEllipsisedOption } from './NcEllipsisedOption/index.js'

Expand All @@ -78,7 +78,7 @@ export { default as NcIconSvgWrapper } from './NcIconSvgWrapper/index.js'
// export { default as NcListItem } from './NcListItem/index.js'
export { default as NcListItemIcon } from './NcListItemIcon/index.js'
export { default as NcLoadingIcon } from './NcLoadingIcon/index.js'
// export { default as NcModal } from './NcModal/index.js'
export { default as NcModal } from './NcModal/index.js'
export { default as NcNoteCard } from './NcNoteCard/index.js'
export { default as NcPasswordField } from './NcPasswordField/index.js'
export { default as NcPopover } from './NcPopover/index.js'
Expand Down
12 changes: 6 additions & 6 deletions styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ module.exports = async () => {
// 'src/components/NcDashboard*/*.vue',
// ],
// },
// {
// name: 'NcDialog',
// components: [
// 'src/components/NcDialog*/*.vue',
// ],
// },
{
name: 'NcDialog',
components: [
'src/components/NcDialog*/*.vue',
],
},
{
name: 'NcFields',
components: [
Expand Down

0 comments on commit 63549dd

Please sign in to comment.