Commit 8aec9de8 authored by Taurie Davis's avatar Taurie Davis

Migrate license policy submit loading button

parent 5223e316
<script>
import { GlButton } from '@gitlab/ui';
import LoadingButton from '~/vue_shared/components/loading_button.vue';
import { LICENSE_APPROVAL_STATUS } from '../constants';
import AddLicenseFormDropdown from './add_license_form_dropdown.vue';
import { s__ } from '~/locale';
......@@ -10,7 +9,6 @@ export default {
components: {
AddLicenseFormDropdown,
GlButton,
LoadingButton,
},
LICENSE_APPROVAL_STATUS,
approvalStatusOptions: [
......@@ -86,17 +84,21 @@ export default {
</label>
</div>
</div>
<loading-button
<div class="gl-display-flex">
<gl-button
class="js-submit"
:disabled="submitDisabled"
:loading="loading"
container-class="btn btn-success btn-align-content d-inline-flex"
:label="s__('LicenseCompliance|Submit')"
category="primary"
variant="success"
data-qa-selector="add_license_submit_button"
@click="addLicense"
/>
<gl-button class="js-cancel" :disabled="loading" @click="closeForm">
{{ s__('LicenseCompliance|Cancel') }}
>
{{ __('Submit') }}
</gl-button>
<gl-button class="js-cancel ml-2" :disabled="loading" @click="closeForm">
{{ __('Cancel') }}
</gl-button>
</div>
</div>
</template>
......@@ -13444,9 +13444,6 @@ msgstr ""
msgid "LicenseCompliance|Allowed"
msgstr ""
msgid "LicenseCompliance|Cancel"
msgstr ""
msgid "LicenseCompliance|Denied"
msgstr ""
......@@ -13506,9 +13503,6 @@ msgstr ""
msgid "LicenseCompliance|Remove license?"
msgstr ""
msgid "LicenseCompliance|Submit"
msgstr ""
msgid "LicenseCompliance|There are currently no approved or blacklisted licenses in this project."
msgstr ""
......@@ -22150,6 +22144,9 @@ msgstr ""
msgid "Subkeys"
msgstr ""
msgid "Submit"
msgstr ""
msgid "Submit %{humanized_resource_name}"
msgstr ""
......
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