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
469f0217
Commit
469f0217
authored
Oct 16, 2019
by
Enrique Alcantara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass el object to init function
parent
41733145
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
17 deletions
+15
-17
app/assets/javascripts/create_cluster/eks_cluster/index.js
app/assets/javascripts/create_cluster/eks_cluster/index.js
+8
-16
app/assets/javascripts/pages/projects/clusters/new/index.js
app/assets/javascripts/pages/projects/clusters/new/index.js
+7
-1
No files found.
app/assets/javascripts/create_cluster/eks_cluster/index.js
View file @
469f0217
...
...
@@ -5,30 +5,22 @@ import createStore from './store';
Vue
.
use
(
Vuex
);
export
default
()
=>
new
Vue
({
el
:
'
.js-create-eks-cluster-form-container
'
,
export
default
el
=>
{
const
{
gitlabManagedClusterHelpPath
,
kubernetesIntegrationHelpPath
}
=
el
.
dataset
;
return
new
Vue
({
el
,
store
:
createStore
(),
components
:
{
CreateEksCluster
,
},
data
()
{
const
{
gitlabManagedClusterHelpPath
,
kubernetesIntegrationHelpPath
,
}
=
document
.
querySelector
(
this
.
$options
.
el
).
dataset
;
return
{
gitlabManagedClusterHelpPath
,
kubernetesIntegrationHelpPath
,
};
},
render
(
createElement
)
{
return
createElement
(
'
create-eks-cluster
'
,
{
props
:
{
gitlabManagedClusterHelpPath
:
this
.
gitlabManagedClusterHelpPath
,
kubernetesIntegrationHelpPath
:
this
.
kubernetesIntegrationHelpPath
,
gitlabManagedClusterHelpPath
,
kubernetesIntegrationHelpPath
,
},
});
},
});
};
app/assets/javascripts/pages/projects/clusters/new/index.js
View file @
469f0217
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
if
(
gon
.
features
.
createEksClusters
)
{
import
(
/* webpackChunkName: 'eks_cluster' */
'
~/create_cluster/eks_cluster
'
)
.
then
(({
default
:
initCreateEKSCluster
})
=>
initCreateEKSCluster
())
.
then
(({
default
:
initCreateEKSCluster
})
=>
{
const
el
=
document
.
querySelector
(
'
.js-create-eks-cluster-form-container
'
);
if
(
el
)
{
initCreateEKSCluster
(
el
);
}
})
.
catch
(()
=>
{});
}
});
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