{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5597","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5597/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5597/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5597/events","html_url":"https://github.com/ManageIQ/manageiq/issues/5597","id":118830423,"number":5597,"title":"Toolbar buttons: add context awareness","user":{"login":"martinpovolny","id":51095,"avatar_url":"https://avatars.githubusercontent.com/u/51095?v=3","gravatar_id":"","url":"https://api.github.com/users/martinpovolny","html_url":"https://github.com/martinpovolny","followers_url":"https://api.github.com/users/martinpovolny/followers","following_url":"https://api.github.com/users/martinpovolny/following{/other_user}","gists_url":"https://api.github.com/users/martinpovolny/gists{/gist_id}","starred_url":"https://api.github.com/users/martinpovolny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinpovolny/subscriptions","organizations_url":"https://api.github.com/users/martinpovolny/orgs","repos_url":"https://api.github.com/users/martinpovolny/repos","events_url":"https://api.github.com/users/martinpovolny/events{/privacy}","received_events_url":"https://api.github.com/users/martinpovolny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/pluggable%20providers","name":"pluggable providers","color":"5319e7"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/ui","name":"ui","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"martinpovolny","id":51095,"avatar_url":"https://avatars.githubusercontent.com/u/51095?v=3","gravatar_id":"","url":"https://api.github.com/users/martinpovolny","html_url":"https://github.com/martinpovolny","followers_url":"https://api.github.com/users/martinpovolny/followers","following_url":"https://api.github.com/users/martinpovolny/following{/other_user}","gists_url":"https://api.github.com/users/martinpovolny/gists{/gist_id}","starred_url":"https://api.github.com/users/martinpovolny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinpovolny/subscriptions","organizations_url":"https://api.github.com/users/martinpovolny/orgs","repos_url":"https://api.github.com/users/martinpovolny/repos","events_url":"https://api.github.com/users/martinpovolny/events{/privacy}","received_events_url":"https://api.github.com/users/martinpovolny/received_events","type":"User","site_admin":false},"assignees":[{"login":"martinpovolny","id":51095,"avatar_url":"https://avatars.githubusercontent.com/u/51095?v=3","gravatar_id":"","url":"https://api.github.com/users/martinpovolny","html_url":"https://github.com/martinpovolny","followers_url":"https://api.github.com/users/martinpovolny/followers","following_url":"https://api.github.com/users/martinpovolny/following{/other_user}","gists_url":"https://api.github.com/users/martinpovolny/gists{/gist_id}","starred_url":"https://api.github.com/users/martinpovolny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinpovolny/subscriptions","organizations_url":"https://api.github.com/users/martinpovolny/orgs","repos_url":"https://api.github.com/users/martinpovolny/repos","events_url":"https://api.github.com/users/martinpovolny/events{/privacy}","received_events_url":"https://api.github.com/users/martinpovolny/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2015-11-25T12:51:39Z","updated_at":"2016-10-15T15:11:09Z","closed_at":null,"body":"# Toolbar buttons: add context awareness\r\n\r\nWe need to enable/disable toolbar buttons not only based on number of items selected i a GTL view, but also based on type or other attributes of the selected item(s).\r\n\r\nThere was a number of BZ and there are many situations where this is needed.\r\n\r\nDo do so we need \r\n\r\n  1) pass additional attributes along with items in GTL views. Use the HTML5 `data-*` attributes for that\r\n  1) write the custom javascripts what work with these attributes\r\n  1) attach particular javascript bits to the buttons\r\n\r\nNew attribute has to be added to the toolbar definitions that would hold the name of the function to call.\r\nThe functions would be static and would live under `ManageIQ.toolbars.` namespace.\r\n\r\nExamples: Toolbar button \"Clone VM\" should by enabled for VMs but not for archived VMs."},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/253989988","html_url":"https://github.com/ManageIQ/manageiq/issues/5597#issuecomment-253989988","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5597","id":253989988,"user":{"login":"romanblanco","id":1187051,"avatar_url":"https://avatars.githubusercontent.com/u/1187051?v=3","gravatar_id":"","url":"https://api.github.com/users/romanblanco","html_url":"https://github.com/romanblanco","followers_url":"https://api.github.com/users/romanblanco/followers","following_url":"https://api.github.com/users/romanblanco/following{/other_user}","gists_url":"https://api.github.com/users/romanblanco/gists{/gist_id}","starred_url":"https://api.github.com/users/romanblanco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanblanco/subscriptions","organizations_url":"https://api.github.com/users/romanblanco/orgs","repos_url":"https://api.github.com/users/romanblanco/repos","events_url":"https://api.github.com/users/romanblanco/events{/privacy}","received_events_url":"https://api.github.com/users/romanblanco/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T15:11:09Z","updated_at":"2016-10-15T15:11:09Z","body":"#11114"}}
{"actor":{"display_login":"romanblanco"}}