Commit b7f0de6d authored by Martin Wortschack's avatar Martin Wortschack

Merge branch '229221-eks-loading-button' into 'master'

Migrate EKS config loading button to GlButton

See merge request gitlab-org/gitlab!48383
parents 39868777 812a9d6b
<script> <script>
import { createNamespacedHelpers, mapState, mapActions, mapGetters } from 'vuex'; import { createNamespacedHelpers, mapState, mapActions, mapGetters } from 'vuex';
import { GlFormGroup, GlFormInput, GlFormCheckbox, GlIcon, GlLink, GlSprintf } from '@gitlab/ui'; import {
GlFormGroup,
GlFormInput,
GlFormCheckbox,
GlIcon,
GlLink,
GlSprintf,
GlButton,
} from '@gitlab/ui';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import ClusterFormDropdown from '~/create_cluster/components/cluster_form_dropdown.vue'; import ClusterFormDropdown from '~/create_cluster/components/cluster_form_dropdown.vue';
import { KUBERNETES_VERSIONS } from '../constants'; import { KUBERNETES_VERSIONS } from '../constants';
import LoadingButton from '~/vue_shared/components/loading_button.vue';
const { mapState: mapRolesState, mapActions: mapRolesActions } = createNamespacedHelpers('roles'); const { mapState: mapRolesState, mapActions: mapRolesActions } = createNamespacedHelpers('roles');
const { mapState: mapKeyPairsState, mapActions: mapKeyPairsActions } = createNamespacedHelpers( const { mapState: mapKeyPairsState, mapActions: mapKeyPairsActions } = createNamespacedHelpers(
...@@ -29,7 +36,7 @@ export default { ...@@ -29,7 +36,7 @@ export default {
GlIcon, GlIcon,
GlLink, GlLink,
GlSprintf, GlSprintf,
LoadingButton, GlButton,
}, },
props: { props: {
gitlabManagedClusterHelpPath: { gitlabManagedClusterHelpPath: {
...@@ -508,13 +515,16 @@ export default { ...@@ -508,13 +515,16 @@ export default {
</p> </p>
</div> </div>
<div class="form-group"> <div class="form-group">
<loading-button <gl-button
class="js-create-cluster btn-success" variant="success"
category="primary"
class="js-create-cluster"
:disabled="createClusterButtonDisabled" :disabled="createClusterButtonDisabled"
:loading="isCreatingCluster" :loading="isCreatingCluster"
:label="createClusterButtonLabel"
@click="createCluster()" @click="createCluster()"
/> >
{{ createClusterButtonLabel }}
</gl-button>
</div> </div>
</form> </form>
</template> </template>
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