Commit 9cbb10d6 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch 'replace-button-ide' into 'master'

Replace deprecated button in Web IDE

Closes #219876

See merge request gitlab-org/gitlab!36139
parents 37d86926 c36f6890
<script> <script>
import { mapActions, mapGetters, mapState } from 'vuex'; import { mapActions, mapGetters, mapState } from 'vuex';
import { GlDeprecatedButton, GlLoadingIcon } from '@gitlab/ui'; import { GlButton, GlLoadingIcon } from '@gitlab/ui';
import { __ } from '~/locale'; import { __ } from '~/locale';
import { modalTypes } from '../constants'; import { modalTypes } from '../constants';
import FindFile from '~/vue_shared/components/file_finder/index.vue'; import FindFile from '~/vue_shared/components/file_finder/index.vue';
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
FindFile, FindFile,
ErrorMessage, ErrorMessage,
CommitEditorHeader, CommitEditorHeader,
GlDeprecatedButton, GlButton,
GlLoadingIcon, GlLoadingIcon,
RightPane, RightPane,
}, },
...@@ -121,15 +121,16 @@ export default { ...@@ -121,15 +121,16 @@ export default {
) )
}} }}
</p> </p>
<gl-deprecated-button <gl-button
variant="success" variant="success"
category="primary"
:title="__('New file')" :title="__('New file')"
:aria-label="__('New file')" :aria-label="__('New file')"
data-qa-selector="first_file_button" data-qa-selector="first_file_button"
@click="createNewFile()" @click="createNewFile()"
> >
{{ __('New file') }} {{ __('New file') }}
</gl-deprecated-button> </gl-button>
</template> </template>
<gl-loading-icon v-else-if="!currentTree || currentTree.loading" size="md" /> <gl-loading-icon v-else-if="!currentTree || currentTree.loading" size="md" />
<p v-else> <p v-else>
......
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