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

fix: Adjust types for IFilePickerButton to align icon with NcDialogButton #1122

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

import type { Node } from '@nextcloud/files'
import type { AsyncComponent, Component } from 'vue'

/**
* Interface for defining buttons passed to the Dialog component
Expand All @@ -33,11 +32,12 @@ export interface IDialogButton {

/** Callback on button click */
callback: () => void,

/**
* Optional Icon for the button
* Can be a Vue component, async Vue component, or SVG
* Should be a SVG image as raw string
*/
icon?: Component | AsyncComponent | string,
icon?: string,

/**
* Button type
Expand Down