diff options
Diffstat (limited to 'app/assets/javascripts/runner/runner_details/index.js')
-rw-r--r-- | app/assets/javascripts/runner/runner_details/index.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/assets/javascripts/runner/runner_details/index.js b/app/assets/javascripts/runner/runner_details/index.js new file mode 100644 index 00000000000..cbf70640ef7 --- /dev/null +++ b/app/assets/javascripts/runner/runner_details/index.js @@ -0,0 +1,23 @@ +import Vue from 'vue'; +import RunnerDetailsApp from './runner_details_app.vue'; + +export const initRunnerDetail = (selector = '#js-runner-detail') => { + const el = document.querySelector(selector); + + if (!el) { + return null; + } + + const { runnerId } = el.dataset; + + return new Vue({ + el, + render(h) { + return h(RunnerDetailsApp, { + props: { + runnerId, + }, + }); + }, + }); +}; |