-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbug
Description
Steps to reproduce
- Create an app
- Develop an app to add new menu context in Files
- Cannot add a new link action
Expected behaviour
My customized application should add a new menu link action on Files.
Actual behaviour
Nothing happens, no error message
Server configuration
Operating system:
Windows 10
Web server:
Nginx
Database:
MySQL
PHP version:
7.2
Nextcloud version: (see Nextcloud admin page)
18
Updated from an older Nextcloud/ownCloud or fresh install:
Client configuration
Browser:
Brave Browser
Operating system:
Windows 10
This is my Code :
(function (OCA) {
"use strict";
OCA.Files = OCA.Files || {};
OCA.Files.QrCodePlugin = {
name: 'qrCode',
_extendFileActions: function (fileActions) {
fileActions.registerAction({
name: 'qrCode',
displayName: t('mynote', 'qrCode'),
mime: 'all',
iconClass: 'icon-public',
actionHandler: function () {}
});
},
attach: function (fileList) {
this._extendFileActions(fileList.fileActions);
}
}
}) (OCA);
OC.Plugins.register('OCA.Files.FileList', OCA.Files.QrCodePlugin);
Can you tell me where I can debug my registerAction or tell me what is missing ?
Metadata
Metadata
Assignees
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbug