43e713eb41
- Move some specs into contexts - Let get_slugs method take a parameter and return a specific slug. - Add rescues when using Addressable::URI.
27 lines
762 B
JavaScript
27 lines
762 B
JavaScript
import Vue from 'vue';
|
|
import ErrorTrackingSettings from './components/app.vue';
|
|
import createStore from './store';
|
|
|
|
export default () => {
|
|
const formContainerEl = document.querySelector('.js-error-tracking-form');
|
|
const {
|
|
dataset: { apiHost, enabled, project, token, listProjectsEndpoint, operationsSettingsEndpoint },
|
|
} = formContainerEl;
|
|
|
|
return new Vue({
|
|
el: formContainerEl,
|
|
store: createStore(),
|
|
render(createElement) {
|
|
return createElement(ErrorTrackingSettings, {
|
|
props: {
|
|
initialApiHost: apiHost,
|
|
initialEnabled: enabled,
|
|
initialProject: project,
|
|
initialToken: token,
|
|
listProjectsEndpoint,
|
|
operationsSettingsEndpoint,
|
|
},
|
|
});
|
|
},
|
|
});
|
|
};
|