Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
3acc649d
Commit
3acc649d
authored
May 14, 2018
by
Dennis Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move state into separate file as per vuex docs
parent
f15e331d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
app/assets/javascripts/projects/gke_cluster_dropdowns/store/index.js
...javascripts/projects/gke_cluster_dropdowns/store/index.js
+2
-11
app/assets/javascripts/projects/gke_cluster_dropdowns/store/state.js
...javascripts/projects/gke_cluster_dropdowns/store/state.js
+11
-0
No files found.
app/assets/javascripts/projects/gke_cluster_dropdowns/store/index.js
View file @
3acc649d
...
@@ -3,6 +3,7 @@ import Vuex from 'vuex';
...
@@ -3,6 +3,7 @@ import Vuex from 'vuex';
import
*
as
actions
from
'
./actions
'
;
import
*
as
actions
from
'
./actions
'
;
import
*
as
getters
from
'
./getters
'
;
import
*
as
getters
from
'
./getters
'
;
import
mutations
from
'
./mutations
'
;
import
mutations
from
'
./mutations
'
;
import
state
from
'
./state
'
;
Vue
.
use
(
Vuex
);
Vue
.
use
(
Vuex
);
...
@@ -10,15 +11,5 @@ export default new Vuex.Store({
...
@@ -10,15 +11,5 @@ export default new Vuex.Store({
actions
,
actions
,
getters
,
getters
,
mutations
,
mutations
,
state
:
{
state
,
selectedProject
:
{
projectId
:
''
,
name
:
''
,
},
selectedZone
:
''
,
selectedMachineType
:
''
,
projects
:
[],
zones
:
[],
machineTypes
:
[],
},
});
});
app/assets/javascripts/projects/gke_cluster_dropdowns/store/state.js
0 → 100644
View file @
3acc649d
export
default
{
selectedProject
:
{
projectId
:
''
,
name
:
''
,
},
selectedZone
:
''
,
selectedMachineType
:
''
,
projects
:
[],
zones
:
[],
machineTypes
:
[],
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment