{"action":"created","issue":{"url":"https://api.github.com/repos/bootstrap-vue/bootstrap-vue/issues/234","repository_url":"https://api.github.com/repos/bootstrap-vue/bootstrap-vue","labels_url":"https://api.github.com/repos/bootstrap-vue/bootstrap-vue/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/bootstrap-vue/bootstrap-vue/issues/234/comments","events_url":"https://api.github.com/repos/bootstrap-vue/bootstrap-vue/issues/234/events","html_url":"https://github.com/bootstrap-vue/bootstrap-vue/issues/234","id":221944334,"number":234,"title":"Recommended modal usage with vuex?","user":{"login":"ropeladder","id":6224065,"avatar_url":"https://avatars3.githubusercontent.com/u/6224065?v=3","gravatar_id":"","url":"https://api.github.com/users/ropeladder","html_url":"https://github.com/ropeladder","followers_url":"https://api.github.com/users/ropeladder/followers","following_url":"https://api.github.com/users/ropeladder/following{/other_user}","gists_url":"https://api.github.com/users/ropeladder/gists{/gist_id}","starred_url":"https://api.github.com/users/ropeladder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ropeladder/subscriptions","organizations_url":"https://api.github.com/users/ropeladder/orgs","repos_url":"https://api.github.com/users/ropeladder/repos","events_url":"https://api.github.com/users/ropeladder/events{/privacy}","received_events_url":"https://api.github.com/users/ropeladder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-15T11:58:25Z","updated_at":"2017-04-21T10:50:56Z","closed_at":"2017-04-21T10:50:56Z","body":"Hi, thanks for your great work on this component.\r\n\r\nI'm trying to use the modal component with Vuex so that I can trigger the modal from anywhere in my app. Right now I have it set up using a watcher on a computed property, like so:\r\n```\r\n...\r\ncomputed: {\r\n    showModal: function () { return this.$store.state.modal.show },\r\n},\r\nwatch: {\r\n    showModal: function(val) {\r\n        if(val === true) this.$root.$emit('show::modal','modal1')\r\n    }\r\n}\r\n```\r\nIs this the recommended way to set this up?"},"comment":{"url":"https://api.github.com/repos/bootstrap-vue/bootstrap-vue/issues/comments/296160133","html_url":"https://github.com/bootstrap-vue/bootstrap-vue/issues/234#issuecomment-296160133","issue_url":"https://api.github.com/repos/bootstrap-vue/bootstrap-vue/issues/234","id":296160133,"user":{"login":"pi0","id":5158436,"avatar_url":"https://avatars3.githubusercontent.com/u/5158436?v=3","gravatar_id":"","url":"https://api.github.com/users/pi0","html_url":"https://github.com/pi0","followers_url":"https://api.github.com/users/pi0/followers","following_url":"https://api.github.com/users/pi0/following{/other_user}","gists_url":"https://api.github.com/users/pi0/gists{/gist_id}","starred_url":"https://api.github.com/users/pi0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pi0/subscriptions","organizations_url":"https://api.github.com/users/pi0/orgs","repos_url":"https://api.github.com/users/pi0/repos","events_url":"https://api.github.com/users/pi0/events{/privacy}","received_events_url":"https://api.github.com/users/pi0/received_events","type":"User","site_admin":false},"created_at":"2017-04-21T10:50:56Z","updated_at":"2017-04-21T10:50:56Z","body":"@ropeladder Now more modal toggle methods are available. See [modal docs](https://bootstrap-vue.github.io/docs/components/modal) . Choose best one that fits your usage."}}
{"actor":{"display_login":"pi0"}}