{"id":4730,"date":"2015-04-30T21:50:52","date_gmt":"2015-04-30T18:50:52","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=4730"},"modified":"2015-04-30T21:50:52","modified_gmt":"2015-04-30T18:50:52","slug":"the-best-i-could-figure-in-the-meantime","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2015\/04\/30\/the-best-i-could-figure-in-the-meantime\/","title":{"rendered":"The best I could figure in the meantime"},"content":{"rendered":"<p>Hey @trentrichardson, and thanks for the response! The best I could figure in the meantime was to initialize the prompt differently in each branch, like so:<\/p>\n<pre><code>    if (user.isSignedIn) {\r\n        states = {\r\n            signOut: states.signOut,\r\n            signIn: states.signIn,\r\n            register: states.register\r\n        };\r\n    } else {\r\n        states = {\r\n            signIn: states.signIn,\r\n            signOut: states.signOut,\r\n            register: states.register\r\n        };\r\n    }\r\n    thePrompt = $.prompt(states);<\/code><\/pre>\n<p>But it&#8217;s definitely better to have true support for this in the extension itself. Excellent!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the meantime I initialize the prompt differently in each branch.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[],"class_list":["post-4730","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/4730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=4730"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/4730\/revisions"}],"predecessor-version":[{"id":4731,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/4730\/revisions\/4731"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=4730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=4730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=4730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}