Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-11 13:09:12 +0300
committerJulius Härtl <jus@bitgrid.net>2020-08-11 13:09:12 +0300
commit2dbeac1a0ab1cc974e9b5dee0f71547822b48c09 (patch)
treefb94ba4369cc232bbd38f7d5b8ddf1c7e11530a0 /src/helpers/files.js
parenta702e685b9ec335b10754efc0dbb5aa5e4aecf89 (diff)
Bump eslint and fix deprecations
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/helpers/files.js')
-rw-r--r--src/helpers/files.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helpers/files.js b/src/helpers/files.js
index caf8e7c92..29eeb768f 100644
--- a/src/helpers/files.js
+++ b/src/helpers/files.js
@@ -26,6 +26,7 @@
*/
import { openMimetypes } from './mime'
import RichWorkspace from '../views/RichWorkspace'
+import { imagePath } from '@nextcloud/router'
const FILE_ACTION_IDENTIFIER = 'Edit with text app'
@@ -74,7 +75,7 @@ const registerFileActionFallback = () => {
mime,
FILE_ACTION_IDENTIFIER,
OC.PERMISSION_UPDATE | OC.PERMISSION_READ,
- OC.imagePath('core', 'actions/rename'),
+ imagePath('core', 'actions/rename'),
(filename) => {
const file = window.FileList.findFile(filename)
Promise.all([