Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add spawnDialog function #6195

Merged
merged 1 commit into from
Nov 11, 2024
Merged

feat: Add spawnDialog function #6195

merged 1 commit into from
Nov 11, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Nov 6, 2024

☑️ Resolves

This allows to spawn a Vue dialog without the need of mounting the component.
So it is possible to spawn a dialog directly from any JS code outside of components (e.g. callback functions).

This method was originally taken from @nextcloud/dialogs, but I think it should belong to this Vue components library.

🖼️ Screenshots

grafik

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 3️⃣ Backport to next requested with a Vue 3 upgrade

@susnux susnux added enhancement New feature or request 3. to review Waiting for reviews feature: functions composables, functions, mixins and other non-components labels Nov 6, 2024
@susnux susnux added this to the 8.20.0 milestone Nov 6, 2024
src/functions/index.ts Outdated Show resolved Hide resolved
src/functions/dialog/index.ts Outdated Show resolved Hide resolved
src/functions/dialog/index.ts Outdated Show resolved Hide resolved
src/functions/dialog/index.ts Show resolved Hide resolved
docs/functions/dialog.md Outdated Show resolved Hide resolved
This allows to spawn a Vue dialog without the need of mounting the
component.
So it is possible to spawn a dialog directly from any JS code outside of
components (e.g. callback functions).

This method was originally taken from `@nextcloud/dialogs`,
but I think it should belong to this Vue components library.

Co-authored-by: Ferdinand Thiessen <[email protected]>
Co-authored-by: Grigorii K. Shartsev <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
@Antreesy Antreesy merged commit 3245f8c into master Nov 11, 2024
19 checks passed
@Antreesy Antreesy deleted the feat/add-spawn-dialog branch November 11, 2024 14:14
@Antreesy
Copy link
Contributor

/backport to next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request feature: functions composables, functions, mixins and other non-components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants