{"action":"created","issue":{"url":"https://api.github.com/repos/locomotivecms/engine/issues/1130","repository_url":"https://api.github.com/repos/locomotivecms/engine","labels_url":"https://api.github.com/repos/locomotivecms/engine/issues/1130/labels{/name}","comments_url":"https://api.github.com/repos/locomotivecms/engine/issues/1130/comments","events_url":"https://api.github.com/repos/locomotivecms/engine/issues/1130/events","html_url":"https://github.com/locomotivecms/engine/issues/1130","id":135462558,"number":1130,"title":"Prompt for unsaved changes in back-office","user":{"login":"cappadona","id":409842,"avatar_url":"https://avatars.githubusercontent.com/u/409842?v=3","gravatar_id":"","url":"https://api.github.com/users/cappadona","html_url":"https://github.com/cappadona","followers_url":"https://api.github.com/users/cappadona/followers","following_url":"https://api.github.com/users/cappadona/following{/other_user}","gists_url":"https://api.github.com/users/cappadona/gists{/gist_id}","starred_url":"https://api.github.com/users/cappadona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cappadona/subscriptions","organizations_url":"https://api.github.com/users/cappadona/orgs","repos_url":"https://api.github.com/users/cappadona/repos","events_url":"https://api.github.com/users/cappadona/events{/privacy}","received_events_url":"https://api.github.com/users/cappadona/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/locomotivecms/engine/labels/feature","name":"feature","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-22T16:08:38Z","updated_at":"2016-02-25T00:40:37Z","closed_at":null,"body":"Currently, in **v3.0.1**, it's just too easy to mistakenly navigate away and lose all of your work.\r\n\r\n#### Example Scenario\r\n\r\n1. Open a page in the back-office\r\n1. Add some text in one of the editable elements (**do not click the `save` button**)\r\n1. Click the `Settings` link for the current page\r\n1. Return back to the content editor by clicking the `CONTENT` tab\r\n\r\n**Result:** Changes are lost\r\n\r\n> Using the browser's back button to return to the content editor might preserve the previous changes made, but this is inconsistent and only potentially helps address the issue if the user realizes the error instead of preventing the situation by notifying the user before data is lost "},"comment":{"url":"https://api.github.com/repos/locomotivecms/engine/issues/comments/188535837","html_url":"https://github.com/locomotivecms/engine/issues/1130#issuecomment-188535837","issue_url":"https://api.github.com/repos/locomotivecms/engine/issues/1130","id":188535837,"user":{"login":"did","id":8065,"avatar_url":"https://avatars.githubusercontent.com/u/8065?v=3","gravatar_id":"","url":"https://api.github.com/users/did","html_url":"https://github.com/did","followers_url":"https://api.github.com/users/did/followers","following_url":"https://api.github.com/users/did/following{/other_user}","gists_url":"https://api.github.com/users/did/gists{/gist_id}","starred_url":"https://api.github.com/users/did/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/did/subscriptions","organizations_url":"https://api.github.com/users/did/orgs","repos_url":"https://api.github.com/users/did/repos","events_url":"https://api.github.com/users/did/events{/privacy}","received_events_url":"https://api.github.com/users/did/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T00:40:37Z","updated_at":"2016-02-25T00:40:37Z","body":"@cappadona. totally agreed on that. We need to display a confirmation popup if you want to leave the page."}}