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 {
GlDropdownSectionHeader,
GlDropdownItem,
GlSprintf,
GlButton,
} from '@gitlab/ui';
import { s__ } from '~/locale';
import { convertObjectPropsToSnakeCase } from '~/lib/utils/common_utils';
......@@ -80,6 +81,7 @@ export default {
GlDropdownSectionHeader,
GlDropdownItem,
GlSprintf,
GlButton,
},
props: {
events: {
......@@ -363,23 +365,26 @@ export default {
</div>
</div>
<div class="custom-stage-form-actions">
<button
<gl-button
:disabled="!isDirty"
class="btn btn-cancel js-save-stage-cancel"
type="button"
category="primary"
class="js-save-stage-cancel"
type="gl-button"
@click="handleCancel"
>
{{ __('Cancel') }}
</button>
<button
</gl-button>
<gl-button
:disabled="!isComplete || !isDirty"
type="button"
class="js-save-stage btn btn-success"
variant="success"
category="primary"
class="js-save-stage"
type="gl-button"
@click="handleSave"
>
<gl-loading-icon v-if="isSavingCustomStage" size="sm" inline />
{{ saveStageText }}
</button>
</gl-button>
</div>
<div class="mt-2">
<gl-sprintf
......
// Jest Snapshot v1, https://goo.gl/fbAQLP
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
</button>"
</span></button>"
`;
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
</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