{"push_id":888850200,"size":1,"distinct_size":1,"ref":"refs/heads/issue-20766","head":"33c4f31f521e30288714345e0c5c3274550b9662","before":"5d9660f9462a44449c17186871963e5efa0c3e8f","commits":[{"sha":"33c4f31f521e30288714345e0c5c3274550b9662","author":{"email":"9b36e2522473bb4c7662df180951e8cb7927f4e2@users.noreply.github.com","name":"Jack Davis"},"message":"Design Fix related to Issue #20766\n\nThis is related to an issue I created #20766.\r\n\r\nIssue\r\n\r\nWhile uploading a file, if you click to change to a different app the icon is replaced with a spinning loading GIF. However, if you click \"Stay on this page\" you do not change apps however the spinning GIF stays active in the navigation.\r\n\r\nSolution\r\n\r\nThere seems to be no way to tell which button was clicked when a user is shown a onbeforeupload dialog box so my workaround is to create a timer which automatically restores the app icon to normal 500ms after one of the two solution has been chosen. If the user navigates to another page, then the app nav will be reloaded anyway, if not, and the user stays on the same page, the icon will be put back to normal.\r\n\r\nPlease let me know if there is a better way around this.","distinct":true,"url":"https://api.github.com/repos/JackWillDavis/core/commits/33c4f31f521e30288714345e0c5c3274550b9662"}]}