Skip to content

Commit 5d72f3d

Browse files
authored
Merge pull request #790 from nextcloud/fix/noid/file-actions-breaking-change
No more FileAction class in @nextcloud/files
2 parents a9d099f + 66c5139 commit 5d72f3d

8 files changed

Lines changed: 61 additions & 26 deletions

js/app_api-adminSettings.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/app_api-adminSettings.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/app_api-filesplugin.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/app_api-filesplugin.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/app_api-vendors-node_modules_nextcloud_dialogs_dist_chunks__plugin-vue_export-helper-1tPrXgE0_mjs-nod-dc4ad5.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/app_api-vendors-node_modules_nextcloud_dialogs_dist_chunks__plugin-vue_export-helper-1tPrXgE0_mjs-nod-dc4ad5.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 51 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/filesplugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import axios from '@nextcloud/axios'
77
import { generateUrl } from '@nextcloud/router'
88
import { loadState } from '@nextcloud/initial-state'
9-
import { registerFileAction, FileAction } from '@nextcloud/files'
9+
import { registerFileAction } from '@nextcloud/files'
1010
import { getCurrentUser } from '@nextcloud/auth'
1111
import { translate as t } from '@nextcloud/l10n'
1212

@@ -135,7 +135,7 @@ function registerFileAction33(fileAction, iconProvider) {
135135
return Promise.all(nodes.map(execSingle))
136136
}
137137

138-
const action = new FileAction({
138+
const action = {
139139
id: fileAction.name,
140140
displayName: () => t(fileAction.appid, fileAction.display_name),
141141
title: () => t(fileAction.appid, fileAction.display_name),
@@ -149,7 +149,7 @@ function registerFileAction33(fileAction, iconProvider) {
149149

150150
exec: async ({ nodes }) => execSingle(nodes[0]),
151151
execBatch: async ({ nodes }) => execBatch(nodes),
152-
})
152+
}
153153

154154
registerFileAction(action)
155155
}

0 commit comments

Comments
 (0)