Skip to content
Snippets Groups Projects
Commit c7e6eff4 authored by Filipa Lacerda's avatar Filipa Lacerda
Browse files

Use function to define data instead of an object

parent cad686cc
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -11,8 +11,10 @@ document.addEventListener('DOMContentLoaded', () => {
 
const pipelineGraphApp = new Vue({
el: '#js-pipeline-graph-vue',
data: {
mediator,
data() {
return {
mediator,
};
},
components: {
pipelineGraph,
Loading
Loading
Loading
Loading
@@ -6,8 +6,8 @@ import PipelineStore from './stores/pipeline_store';
import PipelineService from './services/pipeline_service';
 
export default class pipelinesMediator {
constructor(options) {
this.options = options || {};
constructor(options = {}) {
this.options = options;
this.store = new PipelineStore();
this.service = new PipelineService(options.endpoint);
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment