{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/3332","repository_url":"https://api.github.com/repos/mesosphere/marathon","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/3332/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/3332/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/3332/events","html_url":"https://github.com/mesosphere/marathon/issues/3332","id":136190727,"number":3332,"title":"Remember create modal state OR provide warning on close","user":{"login":"leemunroe","id":15963,"avatar_url":"https://avatars.githubusercontent.com/u/15963?v=3","gravatar_id":"","url":"https://api.github.com/users/leemunroe","html_url":"https://github.com/leemunroe","followers_url":"https://api.github.com/users/leemunroe/followers","following_url":"https://api.github.com/users/leemunroe/following{/other_user}","gists_url":"https://api.github.com/users/leemunroe/gists{/gist_id}","starred_url":"https://api.github.com/users/leemunroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leemunroe/subscriptions","organizations_url":"https://api.github.com/users/leemunroe/orgs","repos_url":"https://api.github.com/users/leemunroe/repos","events_url":"https://api.github.com/users/leemunroe/events{/privacy}","received_events_url":"https://api.github.com/users/leemunroe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mesosphere/marathon/labels/design","name":"design","color":"d4c5f9"},{"url":"https://api.github.com/repos/mesosphere/marathon/labels/gui","name":"gui","color":"eb6420"},{"url":"https://api.github.com/repos/mesosphere/marathon/labels/usability","name":"usability","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-24T21:25:12Z","updated_at":"2016-02-24T22:22:00Z","closed_at":null,"body":"Something that has came up in user tests, particularly testing out the new JSON editor.\r\n\r\nUser entered a bunch of JSON, then closed the modal to check something, then clicked create button and the create modal and JSON editor had reset. Frustrating if using the form. Even more frustrating if using JSON editor. And I imagine a lot of users may close the form to look at another app to copy JSON.\r\n\r\nIdeal behavior would be to remember what the user had already entered in the create modal.\r\n\r\nIf not possible, a yellow warning dialog to warn the user that unsaved changes will be lost, would help.\r\n\r\ncc @philipnrmn "},"comment":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/comments/188481126","html_url":"https://github.com/mesosphere/marathon/issues/3332#issuecomment-188481126","issue_url":"https://api.github.com/repos/mesosphere/marathon/issues/3332","id":188481126,"user":{"login":"philipnrmn","id":2989362,"avatar_url":"https://avatars.githubusercontent.com/u/2989362?v=3","gravatar_id":"","url":"https://api.github.com/users/philipnrmn","html_url":"https://github.com/philipnrmn","followers_url":"https://api.github.com/users/philipnrmn/followers","following_url":"https://api.github.com/users/philipnrmn/following{/other_user}","gists_url":"https://api.github.com/users/philipnrmn/gists{/gist_id}","starred_url":"https://api.github.com/users/philipnrmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipnrmn/subscriptions","organizations_url":"https://api.github.com/users/philipnrmn/orgs","repos_url":"https://api.github.com/users/philipnrmn/repos","events_url":"https://api.github.com/users/philipnrmn/events{/privacy}","received_events_url":"https://api.github.com/users/philipnrmn/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T22:22:00Z","updated_at":"2016-02-24T22:22:00Z","body":"I fall victim to this all the time for slightly different reason - as a heavy `vim` user I tend to hit the `Esc` key reflexively when I went to correct something, which closes the modal, sometimes losing a lot of changes. \r\n\r\nGood to know it's not just me. "}}