Commit cdf42646 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '229305-migrate-add-issuable-form-button' into 'master'

Migrate add issueable form add and cancel button

Closes #229305

See merge request gitlab-org/gitlab!41932
parents eec38aa1 ad73eb75
<script> <script>
import { GlFormGroup, GlFormRadioGroup, GlLoadingIcon } from '@gitlab/ui'; import { GlFormGroup, GlFormRadioGroup, GlButton } from '@gitlab/ui';
import { __ } from '~/locale'; import { __ } from '~/locale';
import RelatedIssuableInput from './related_issuable_input.vue'; import RelatedIssuableInput from './related_issuable_input.vue';
import { mergeUrlParams } from '~/lib/utils/url_utility'; import { mergeUrlParams } from '~/lib/utils/url_utility';
...@@ -17,8 +17,8 @@ export default { ...@@ -17,8 +17,8 @@ export default {
components: { components: {
GlFormGroup, GlFormGroup,
GlFormRadioGroup, GlFormRadioGroup,
GlLoadingIcon,
RelatedIssuableInput, RelatedIssuableInput,
GlButton,
}, },
props: { props: {
inputValue: { inputValue: {
...@@ -188,19 +188,20 @@ export default { ...@@ -188,19 +188,20 @@ export default {
{{ addRelatedErrorMessage }} {{ addRelatedErrorMessage }}
</p> </p>
<div class="add-issuable-form-actions clearfix"> <div class="add-issuable-form-actions clearfix">
<button <gl-button
ref="addButton" ref="addButton"
category="primary"
variant="success"
:disabled="isSubmitButtonDisabled" :disabled="isSubmitButtonDisabled"
:loading="isSubmitting"
type="submit" type="submit"
class="js-add-issuable-form-add-button btn btn-success float-left qa-add-issue-button" class="js-add-issuable-form-add-button float-left qa-add-issue-button"
:class="{ disabled: isSubmitButtonDisabled }"
> >
{{ __('Add') }} {{ __('Add') }}
<gl-loading-icon v-if="isSubmitting" ref="loadingIcon" :inline="true" /> </gl-button>
</button> <gl-button class="float-right" @click="onFormCancel">
<button type="button" class="btn btn-default float-right" @click="onFormCancel">
{{ __('Cancel') }} {{ __('Cancel') }}
</button> </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