Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest version breaks gallery #17

Closed
vader2014 opened this issue Aug 9, 2017 · 1 comment
Closed

latest version breaks gallery #17

vader2014 opened this issue Aug 9, 2017 · 1 comment

Comments

@vader2014
Copy link

hi!

yesterday i updated to the latest version of the clipboard app and the gallery app stopped working:
in the javascrip console of firefox i see the following error "TypeError: OCA.Files.fileActions is undefined"
this looks similar to owncloud/gallery#699

this can be fixed by changing app.php to

$eventDispatcher = \OC::$server->getEventDispatcher();                                                                                                                                  
$eventDispatcher->addListener('OCA\Files::loadAdditionalScripts', function() {                                                                                                          
        if(\OC_User::isLoggedIn()) {                                                                                                                                                    
                OCP\Util::addTranslations('files_clipboard');                                                                                                                           
                OCP\Util::addScript('files_clipboard', 'clipboard');                                                                                                                    
                OCP\Util::addStyle('files_clipboard', 'clipboard');                                                                                                                     
        } else {                                                                                                                                                                        
                OCP\Util::addScript('files_clipboard', 'clearClipboard');                                                                                                               
        }                                                                                                                                                                               
});      
leizh added a commit that referenced this issue Aug 9, 2017
@leizh
Copy link
Collaborator

leizh commented Aug 9, 2017

Thanks for the report and the fix.

@leizh leizh closed this as completed Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants