aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/services/FileAction.ts
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-06-21 11:36:11 +0200
committerGitHub <noreply@github.com>2023-06-21 11:36:11 +0200
commit32bbe3db810bb10bde956b1030fb85d5aae16e4c (patch)
tree8b9f105dfbbf322d925fe81f6cd4bfc4035c96c9 /apps/files/src/services/FileAction.ts
parent5fb7ea22be0814eb8e1e1e0f2df6032ef53983cc (diff)
parenta70aa61dffe7fc800c048af2c365076f43934767 (diff)
downloadnextcloud-server-32bbe3db810bb10bde956b1030fb85d5aae16e4c.tar.gz
nextcloud-server-32bbe3db810bb10bde956b1030fb85d5aae16e4c.zip
Merge pull request #38806 from nextcloud/feat/f2v/actions-1
Diffstat (limited to 'apps/files/src/services/FileAction.ts')
-rw-r--r--apps/files/src/services/FileAction.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/src/services/FileAction.ts b/apps/files/src/services/FileAction.ts
index 70d6405c804..6b2e3750a24 100644
--- a/apps/files/src/services/FileAction.ts
+++ b/apps/files/src/services/FileAction.ts
@@ -39,11 +39,11 @@ interface FileActionData {
/** Unique ID */
id: string
/** Translatable string displayed in the menu */
- displayName: (files: Node[], view) => string
+ displayName: (files: Node[], view: Navigation) => string
/** Svg as inline string. <svg><path fill="..." /></svg> */
- iconSvgInline: (files: Node[], view) => string
+ iconSvgInline: (files: Node[], view: Navigation) => string
/** Condition wether this action is shown or not */
- enabled?: (files: Node[], view) => boolean
+ enabled?: (files: Node[], view: Navigation) => boolean
/**
* Function executed on single file action
* @returns true if the action was executed, false otherwise
@@ -64,12 +64,12 @@ interface FileActionData {
/**
* If true, the renderInline function will be called
*/
- inline?: (file: Node, view) => boolean,
+ inline?: (file: Node, view: Navigation) => boolean,
/**
* If defined, the returned html element will be
* appended before the actions menu.
*/
- renderInline?: (file: Node, view) => HTMLElement,
+ renderInline?: (file: Node, view: Navigation) => HTMLElement,
}
export class FileAction {