Commit 64d3d6d7 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch...

Merge branch '229312-migrate-bootstrap-button-to-gitlab-ui-glbutton-in-ee-app-assets-javascripts-analytics' into 'master'

Resolve "Migrate Bootstrap button to GitLab UI GlButton in ee/app/assets/javascripts/analytics/cycle_analytics/components/custom_stage_form.vue"

See merge request gitlab-org/gitlab!43212
parents 157f80c6 2f39dcf4
...@@ -10,6 +10,7 @@ import { ...@@ -10,6 +10,7 @@ import {
GlDropdownSectionHeader, GlDropdownSectionHeader,
GlDropdownItem, GlDropdownItem,
GlSprintf, GlSprintf,
GlButton,
} from '@gitlab/ui'; } from '@gitlab/ui';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import { convertObjectPropsToSnakeCase } from '~/lib/utils/common_utils'; import { convertObjectPropsToSnakeCase } from '~/lib/utils/common_utils';
...@@ -80,6 +81,7 @@ export default { ...@@ -80,6 +81,7 @@ export default {
GlDropdownSectionHeader, GlDropdownSectionHeader,
GlDropdownItem, GlDropdownItem,
GlSprintf, GlSprintf,
GlButton,
}, },
props: { props: {
events: { events: {
...@@ -363,23 +365,24 @@ export default { ...@@ -363,23 +365,24 @@ export default {
</div> </div>
</div> </div>
<div class="custom-stage-form-actions"> <div class="custom-stage-form-actions">
<button <gl-button
:disabled="!isDirty" :disabled="!isDirty"
class="btn btn-cancel js-save-stage-cancel" category="primary"
type="button" class="js-save-stage-cancel"
@click="handleCancel" @click="handleCancel"
> >
{{ __('Cancel') }} {{ __('Cancel') }}
</button> </gl-button>
<button <gl-button
:disabled="!isComplete || !isDirty" :disabled="!isComplete || !isDirty"
type="button" variant="success"
class="js-save-stage btn btn-success" category="primary"
class="js-save-stage"
@click="handleSave" @click="handleSave"
> >
<gl-loading-icon v-if="isSavingCustomStage" size="sm" inline /> <gl-loading-icon v-if="isSavingCustomStage" size="sm" inline />
{{ saveStageText }} {{ saveStageText }}
</button> </gl-button>
</div> </div>
<div class="mt-2"> <div class="mt-2">
<gl-sprintf <gl-sprintf
......
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`CustomStageForm Editing a custom stage isSavingCustomStage=true displays a loading icon 1`] = ` exports[`CustomStageForm Editing a custom stage isSavingCustomStage=true displays a loading icon 1`] = `
"<button disabled=\\"disabled\\" type=\\"button\\" class=\\"js-save-stage btn btn-success\\"><span class=\\"gl-spinner-container\\"><span aria-label=\\"Loading\\" class=\\"align-text-bottom gl-spinner gl-spinner-orange gl-spinner-sm\\"></span></span> "<button type=\\"button\\" disabled=\\"disabled\\" class=\\"btn js-save-stage btn-success btn-md disabled gl-button\\">
<!---->
<!----> <span class=\\"gl-button-text\\"><span class=\\"gl-spinner-container\\"><span aria-label=\\"Loading\\" class=\\"align-text-bottom gl-spinner gl-spinner-orange gl-spinner-sm\\"></span></span>
Update stage Update stage
</button>" </span></button>"
`; `;
exports[`CustomStageForm isSavingCustomStage=true displays a loading icon 1`] = ` exports[`CustomStageForm isSavingCustomStage=true displays a loading icon 1`] = `
"<button disabled=\\"disabled\\" type=\\"button\\" class=\\"js-save-stage btn btn-success\\"><span class=\\"gl-spinner-container\\"><span aria-label=\\"Loading\\" class=\\"align-text-bottom gl-spinner gl-spinner-orange gl-spinner-sm\\"></span></span> "<button type=\\"button\\" disabled=\\"disabled\\" class=\\"btn js-save-stage btn-success btn-md disabled gl-button\\">
<!---->
<!----> <span class=\\"gl-button-text\\"><span class=\\"gl-spinner-container\\"><span aria-label=\\"Loading\\" class=\\"align-text-bottom gl-spinner gl-spinner-orange gl-spinner-sm\\"></span></span>
Add stage Add stage
</button>" </span></button>"
`; `;
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