Commit d795ab07 authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch '219831-docs-aqualls-change-button' into 'master'

Convert button from deprecated to current state

Closes #219831

See merge request gitlab-org/gitlab!38643
parents fa838469 6fe381e7
<script>
import {
GlDeprecatedButton,
GlFormGroup,
GlFormInput,
GlModal,
GlModalDirective,
} from '@gitlab/ui';
import { GlButton, GlFormGroup, GlFormInput, GlModal, GlModalDirective } from '@gitlab/ui';
import ClipboardButton from '~/vue_shared/components/clipboard_button.vue';
import axios from '~/lib/utils/axios_utils';
import { __, sprintf } from '~/locale';
......@@ -14,7 +8,7 @@ import createFlash from '~/flash';
export default {
copyToClipboard: __('Copy'),
components: {
GlDeprecatedButton,
GlButton,
GlFormGroup,
GlFormInput,
GlModal,
......@@ -131,20 +125,13 @@ export default {
)
}}
</gl-modal>
<gl-deprecated-button
v-gl-modal.authKeyModal
class="js-reset-auth-key"
:disabled="disabled"
>{{ __('Reset key') }}</gl-deprecated-button
>
<gl-button v-gl-modal.authKeyModal class="js-reset-auth-key" :disabled="disabled">{{
__('Reset key')
}}</gl-button>
</template>
<gl-deprecated-button
v-else
:disabled="disabled"
class="js-reset-auth-key"
@click="resetKey"
>{{ __('Generate key') }}</gl-deprecated-button
>
<gl-button v-else :disabled="disabled" class="js-reset-auth-key" @click="resetKey">{{
__('Generate key')
}}</gl-button>
</div>
</div>
</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