debian-mirror-gitlab/app/assets/javascripts/error_tracking_settings/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
900 B
JavaScript
Raw Normal View History

2019-07-07 11:18:12 +05:30
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 {
2021-11-11 11:23:49 +05:30
dataset: {
apiHost,
enabled,
integrated,
project,
token,
listProjectsEndpoint,
operationsSettingsEndpoint,
2021-11-18 22:05:49 +05:30
gitlabDsn,
2021-11-11 11:23:49 +05:30
},
2019-07-07 11:18:12 +05:30
} = formContainerEl;
return new Vue({
el: formContainerEl,
store: createStore(),
render(createElement) {
return createElement(ErrorTrackingSettings, {
props: {
initialApiHost: apiHost,
initialEnabled: enabled,
2021-11-11 11:23:49 +05:30
initialIntegrated: integrated,
2019-07-07 11:18:12 +05:30
initialProject: project,
initialToken: token,
listProjectsEndpoint,
operationsSettingsEndpoint,
2021-11-18 22:05:49 +05:30
gitlabDsn,
2019-07-07 11:18:12 +05:30
},
});
},
});
};