{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/24641","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/24641/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/24641/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/24641/events","html_url":"https://github.com/owncloud/core/pull/24641","id":154859204,"number":24641,"title":"[FIX] owncloud/core#11893: disable the download link on empty public page","user":{"login":"SonRiab","id":1729226,"avatar_url":"https://avatars.githubusercontent.com/u/1729226?v=3","gravatar_id":"","url":"https://api.github.com/users/SonRiab","html_url":"https://github.com/SonRiab","followers_url":"https://api.github.com/users/SonRiab/followers","following_url":"https://api.github.com/users/SonRiab/following{/other_user}","gists_url":"https://api.github.com/users/SonRiab/gists{/gist_id}","starred_url":"https://api.github.com/users/SonRiab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonRiab/subscriptions","organizations_url":"https://api.github.com/users/SonRiab/orgs","repos_url":"https://api.github.com/users/SonRiab/repos","events_url":"https://api.github.com/users/SonRiab/events{/privacy}","received_events_url":"https://api.github.com/users/SonRiab/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/3%20-%20To%20Review","name":"3 - To Review","color":"ededed"},{"url":"https://api.github.com/repos/owncloud/core/labels/feature:sharing","name":"feature:sharing","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/62","html_url":"https://github.com/owncloud/core/milestones/9.1-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/62/labels","id":1322460,"number":62,"title":"9.1-current","description":"","creator":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"open_issues":729,"closed_issues":778,"state":"open","created_at":"2015-09-24T16:30:14Z","updated_at":"2016-05-17T14:14:11Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2016-05-14T15:24:21Z","updated_at":"2016-05-17T14:15:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/24641","html_url":"https://github.com/owncloud/core/pull/24641","diff_url":"https://github.com/owncloud/core/pull/24641.diff","patch_url":"https://github.com/owncloud/core/pull/24641.patch"},"body":"Disable the download link by calling preventDefault() and do no futher action. The buttons default state is disabled as long the filelist is empty. Set opacity to .4 for the disabled button.\r\n\r\nFixes #11893"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/219730883","html_url":"https://github.com/owncloud/core/pull/24641#issuecomment-219730883","issue_url":"https://api.github.com/repos/owncloud/core/issues/24641","id":219730883,"user":{"login":"jancborchardt","id":925062,"avatar_url":"https://avatars.githubusercontent.com/u/925062?v=3","gravatar_id":"","url":"https://api.github.com/users/jancborchardt","html_url":"https://github.com/jancborchardt","followers_url":"https://api.github.com/users/jancborchardt/followers","following_url":"https://api.github.com/users/jancborchardt/following{/other_user}","gists_url":"https://api.github.com/users/jancborchardt/gists{/gist_id}","starred_url":"https://api.github.com/users/jancborchardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jancborchardt/subscriptions","organizations_url":"https://api.github.com/users/jancborchardt/orgs","repos_url":"https://api.github.com/users/jancborchardt/repos","events_url":"https://api.github.com/users/jancborchardt/events{/privacy}","received_events_url":"https://api.github.com/users/jancborchardt/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T14:15:24Z","updated_at":"2016-05-17T14:15:24Z","body":"Yeah, looking at the screenshots and trying it out I agree with @oparoz – it’s not even worth showing the button.\r\n\r\n@SonRiab can you modify the code so that instead of disabling it, the button simply gets hidden (and shown again when there are files)? Thanks!"}}