Commit b0c29c8f authored by Vitaly Slobodin's avatar Vitaly Slobodin

Merge branch '229323-new-file-template' into 'master'

Update new file template bar to gl component

See merge request gitlab-org/gitlab!42120
parents dabad744 fe40424d
<script> <script>
import { GlButton } from '@gitlab/ui';
import { mapActions, mapGetters, mapState } from 'vuex'; import { mapActions, mapGetters, mapState } from 'vuex';
import Dropdown from './dropdown.vue'; import Dropdown from './dropdown.vue';
export default { export default {
components: { components: {
Dropdown, Dropdown,
GlButton,
}, },
computed: { computed: {
...mapGetters(['activeFile']), ...mapGetters(['activeFile']),
...@@ -65,9 +67,9 @@ export default { ...@@ -65,9 +67,9 @@ export default {
@click="selectTemplate" @click="selectTemplate"
/> />
<transition name="fade"> <transition name="fade">
<button v-show="updateSuccess" type="button" class="btn btn-default" @click="undo"> <gl-button v-show="updateSuccess" category="secondary" variant="default" @click="undo">
{{ __('Undo') }} {{ __('Undo') }}
</button> </gl-button>
</transition> </transition>
</div> </div>
</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