{"action":"created","issue":{"url":"https://api.github.com/repos/cburschka/cadence/issues/324","labels_url":"https://api.github.com/repos/cburschka/cadence/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/cburschka/cadence/issues/324/comments","events_url":"https://api.github.com/repos/cburschka/cadence/issues/324/events","html_url":"https://github.com/cburschka/cadence/issues/324","id":124581216,"number":324,"title":"Add a visual.format.button","user":{"login":"cburschka","id":1448001,"avatar_url":"https://avatars.githubusercontent.com/u/1448001?v=3","gravatar_id":"","url":"https://api.github.com/users/cburschka","html_url":"https://github.com/cburschka","followers_url":"https://api.github.com/users/cburschka/followers","following_url":"https://api.github.com/users/cburschka/following{/other_user}","gists_url":"https://api.github.com/users/cburschka/gists{/gist_id}","starred_url":"https://api.github.com/users/cburschka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cburschka/subscriptions","organizations_url":"https://api.github.com/users/cburschka/orgs","repos_url":"https://api.github.com/users/cburschka/repos","events_url":"https://api.github.com/users/cburschka/events{/privacy}","received_events_url":"https://api.github.com/users/cburschka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cburschka/cadence/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-02T08:32:19Z","updated_at":"2016-01-02T16:37:53Z","closed_at":null,"body":"The file transfer update requires a new kind of user interaction - actions in response to an incoming event.\n\nSome other stuff might require this too, and it would be good to avoid unexpected disruption (viz. Dialogue windows not opened by the user) as much as possible.\n\nAdding a button to a message is possible (though click events are blocked by @cburschka/jquery-replacetext#2), but requires some repetitive code that could be encapsulated in the template system.\n\n`{ label: string, click: function}`\n\nThe label would not be a user facing string but a key in `string.label.button`."},"comment":{"url":"https://api.github.com/repos/cburschka/cadence/issues/comments/168405240","html_url":"https://github.com/cburschka/cadence/issues/324#issuecomment-168405240","issue_url":"https://api.github.com/repos/cburschka/cadence/issues/324","id":168405240,"user":{"login":"cburschka","id":1448001,"avatar_url":"https://avatars.githubusercontent.com/u/1448001?v=3","gravatar_id":"","url":"https://api.github.com/users/cburschka","html_url":"https://github.com/cburschka","followers_url":"https://api.github.com/users/cburschka/followers","following_url":"https://api.github.com/users/cburschka/following{/other_user}","gists_url":"https://api.github.com/users/cburschka/gists{/gist_id}","starred_url":"https://api.github.com/users/cburschka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cburschka/subscriptions","organizations_url":"https://api.github.com/users/cburschka/orgs","repos_url":"https://api.github.com/users/cburschka/repos","events_url":"https://api.github.com/users/cburschka/events{/privacy}","received_events_url":"https://api.github.com/users/cburschka/received_events","type":"User","site_admin":false},"created_at":"2016-01-02T16:37:53Z","updated_at":"2016-01-02T16:37:53Z","body":"> The label would not be a user facing string but a key in string.label.button.\r\n\r\nActually, this was only done to make the buttons part of the dynamically translated UI.\r\n\r\nHowever, the messages generated by ui.messageAddInfo are statically translated on generation. Changing the language would relabel the buttons while leaving the rest of the message unchanged, which is inconsistent.\r\n\r\n(This may change if Info messages are ever dynamically translated through some magic. That's an incredibly difficult change, as it would require either re-running the message through the template engine or rearranging the template engine to generate dynamically translatable markup.)"}}