Commit fe441d02 authored by Enrique Alcantara's avatar Enrique Alcantara Committed by Tiger

Correctly cast hasCredentials variable

parent bc7cd979
import Vue from 'vue'; import Vue from 'vue';
import Vuex from 'vuex'; import Vuex from 'vuex';
import { parseBoolean } from '~/lib/utils/common_utils';
import CreateEksCluster from './components/create_eks_cluster.vue'; import CreateEksCluster from './components/create_eks_cluster.vue';
import createStore from './store'; import createStore from './store';
...@@ -22,7 +23,7 @@ export default el => { ...@@ -22,7 +23,7 @@ export default el => {
el, el,
store: createStore({ store: createStore({
initialState: { initialState: {
hasCredentials, hasCredentials: parseBoolean(hasCredentials),
externalId, externalId,
accountId, accountId,
}, },
......
...@@ -8,4 +8,4 @@ ...@@ -8,4 +8,4 @@
'external-id' => @aws_role.role_external_id, 'external-id' => @aws_role.role_external_id,
'kubernetes-integration-help-path' => help_page_path('user/project/clusters/index'), 'kubernetes-integration-help-path' => help_page_path('user/project/clusters/index'),
'external-link-icon' => icon('external-link'), 'external-link-icon' => icon('external-link'),
'has-credentials' => @aws_role.role_arn.present? } } 'has-credentials' => @aws_role.role_arn.present?.to_s } }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment