Commit 141ecbee authored by amandakhughes's avatar amandakhughes Committed by Dheeraj Joshi

Updated cycle analytics button to use glbutton

parent 5639d043
...@@ -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,26 @@ export default { ...@@ -363,23 +365,26 @@ 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"
type="gl-button"
@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"
type="gl-button"
@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=\\"gl-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=\\"gl-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