summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/projects
diff options
context:
space:
mode:
authorDennis Tang <dtang@gitlab.com>2018-05-23 16:25:12 +0200
committerDennis Tang <dtang@gitlab.com>2018-05-23 16:25:12 +0200
commite091ce666f407f66acdd98da0ba86d8230864a53 (patch)
treeb5ff21940cfa51a4cf83c1ec13463c33a813c408 /app/assets/javascripts/projects
parent7cc690ee6bd604e131856f5c4bf5d08631af40e9 (diff)
downloadgitlab-ce-e091ce666f407f66acdd98da0ba86d8230864a53.tar.gz
match state function convention in badges
Diffstat (limited to 'app/assets/javascripts/projects')
-rw-r--r--app/assets/javascripts/projects/gke_cluster_dropdowns/store/index.js4
-rw-r--r--app/assets/javascripts/projects/gke_cluster_dropdowns/store/state.js4
2 files changed, 3 insertions, 5 deletions
diff --git a/app/assets/javascripts/projects/gke_cluster_dropdowns/store/index.js b/app/assets/javascripts/projects/gke_cluster_dropdowns/store/index.js
index 10fdfe53094..5f72060633e 100644
--- a/app/assets/javascripts/projects/gke_cluster_dropdowns/store/index.js
+++ b/app/assets/javascripts/projects/gke_cluster_dropdowns/store/index.js
@@ -3,7 +3,7 @@ import Vuex from 'vuex';
import * as actions from './actions';
import * as getters from './getters';
import mutations from './mutations';
-import { state } from './state';
+import createState from './state';
Vue.use(Vuex);
@@ -12,7 +12,7 @@ export const createStore = () =>
actions,
getters,
mutations,
- state: state(),
+ state: createState(),
});
export default createStore();
diff --git a/app/assets/javascripts/projects/gke_cluster_dropdowns/store/state.js b/app/assets/javascripts/projects/gke_cluster_dropdowns/store/state.js
index fb3ead38215..4110377c0f4 100644
--- a/app/assets/javascripts/projects/gke_cluster_dropdowns/store/state.js
+++ b/app/assets/javascripts/projects/gke_cluster_dropdowns/store/state.js
@@ -1,4 +1,4 @@
-export const state = () => ({
+export default () => ({
selectedProject: {
projectId: '',
name: '',
@@ -10,5 +10,3 @@ export const state = () => ({
zones: [],
machineTypes: [],
});
-
-export default state();