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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
3e426c52
Commit
3e426c52
authored
Sep 30, 2019
by
Enrique Alcantara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use namespaced helpers for actions
parent
6cb9af8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
app/assets/javascripts/create_cluster/eks_cluster/components/eks_cluster_configuration_form.vue
...eks_cluster/components/eks_cluster_configuration_form.vue
+10
-8
No files found.
app/assets/javascripts/create_cluster/eks_cluster/components/eks_cluster_configuration_form.vue
View file @
3e426c52
...
...
@@ -6,9 +6,13 @@ import RegionDropdown from './region_dropdown.vue';
import
RoleNameDropdown
from
'
./role_name_dropdown.vue
'
;
import
SecurityGroupDropdown
from
'
./security_group_dropdown.vue
'
;
const
{
mapState
:
mapRegionsState
}
=
createNamespacedHelpers
(
'
regions
'
);
const
{
mapState
:
mapVpcsState
}
=
createNamespacedHelpers
(
'
vpcs
'
);
const
{
mapState
:
mapSubnetsState
}
=
createNamespacedHelpers
(
'
subnets
'
);
const
{
mapState
:
mapRegionsState
,
mapActions
:
mapRegionsActions
}
=
createNamespacedHelpers
(
'
regions
'
,
);
const
{
mapState
:
mapVpcsState
,
mapActions
:
mapVpcActions
}
=
createNamespacedHelpers
(
'
vpcs
'
);
const
{
mapState
:
mapSubnetsState
,
mapActions
:
mapSubnetActions
}
=
createNamespacedHelpers
(
'
subnets
'
,
);
export
default
{
components
:
{
...
...
@@ -72,11 +76,9 @@ export default {
},
methods
:
{
...
mapActions
([
'
setRegion
'
,
'
setVpc
'
,
'
setSubnet
'
]),
...
mapActions
({
fetchRegions
:
'
regions/fetchItems
'
,
fetchVpcs
:
'
vpcs/fetchItems
'
,
fetchSubnets
:
'
subnets/fetchItems
'
,
}),
...
mapRegionsActions
({
fetchRegions
:
'
fetchItems
'
}),
...
mapVpcActions
({
fetchVpcs
:
'
fetchItems
'
}),
...
mapSubnetActions
({
fetchSubnets
:
'
fetchItems
'
}),
setRegionAndFetchVpcs
(
region
)
{
this
.
setRegion
({
region
});
this
.
fetchVpcs
({
region
});
...
...
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