From aeeb54758f3dace39716a3480ba35005378c2a21 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 23 Nov 2023 22:36:43 +0100 Subject: [PATCH] fix: Adjust types for IFilePickerButton to align icon with NcDialogButton icon Signed-off-by: Ferdinand Thiessen --- lib/components/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/components/types.ts b/lib/components/types.ts index b129dca1..d5cd7bb1 100644 --- a/lib/components/types.ts +++ b/lib/components/types.ts @@ -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 @@ -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