Skip to content

Commit fd02b47

Browse files
authored
Merge pull request #1732 from nextcloud-libraries/fix/dialogs-import
fix: the nc-vue dialogs function module is called `dialog` not `dialogs`
2 parents 846c7de + 92b2124 commit fd02b47

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/dialogs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import type { IDialogButton } from './components/types'
77
import type Vue from 'vue'
88

9-
import { spawnDialog } from '@nextcloud/vue/functions/dialogs'
9+
import { spawnDialog } from '@nextcloud/vue/functions/dialog'
1010

1111
import { DialogSeverity } from './components/types'
1212
import GenericDialog from './components/GenericDialog.vue'

lib/filepicker-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { IFilePickerButton, IFilePickerButtonFactory, IFilePickerFilter } f
77
import type { Node } from '@nextcloud/files'
88

99
import { basename } from 'path'
10-
import { spawnDialog } from '@nextcloud/vue/functions/dialogs'
10+
import { spawnDialog } from '@nextcloud/vue/functions/dialog'
1111
import { n, t } from './utils/l10n'
1212

1313
import IconMove from '@mdi/svg/svg/folder-move.svg?raw'

lib/utils/dialogs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
5-
import { spawnDialog as _spawnDialog } from '@nextcloud/vue/functions/dialogs'
5+
import { spawnDialog as _spawnDialog } from '@nextcloud/vue/functions/dialog'
66

77
/**
88
* Helper to spawn a Vue dialog without having to mount it from a component

lib/vue-shims.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ declare module '@nextcloud/vue/components/*' {
1212
export default Vue
1313
}
1414

15-
declare module '@nextcloud/vue/functions/dialogs' {
15+
declare module '@nextcloud/vue/functions/dialog' {
1616
import type { Component, AsyncComponent } from 'vue'
1717
interface DialogProps {
1818
[index: string]: unknown

0 commit comments

Comments
 (0)