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