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

Merge branch '229321-update-board-open-button' into 'master'

Update buttons in the Add issues modal in Boards

Closes #229321

See merge request gitlab-org/gitlab!42317
parents 7c7b05d8 4f8162e9
<script>
/* eslint-disable vue/no-v-html */
import { GlButton } from '@gitlab/ui';
import { __, sprintf } from '~/locale';
import ModalStore from '../../stores/modal_store';
import modalMixin from '../../mixins/modal_mixins';
export default {
components: {
GlButton,
},
mixins: [modalMixin],
props: {
newIssuePath: {
......@@ -54,17 +58,22 @@ export default {
<div class="text-content">
<h4>{{ contents.title }}</h4>
<p v-html="contents.content"></p>
<a v-if="activeTab === 'all'" :href="newIssuePath" class="btn btn-success btn-inverted">{{
__('New issue')
}}</a>
<button
<gl-button
v-if="activeTab === 'all'"
:href="newIssuePath"
category="secondary"
variant="success"
>
{{ __('New issue') }}
</gl-button>
<gl-button
v-if="activeTab === 'selected'"
class="btn btn-default"
type="button"
category="primary"
variant="default"
@click="changeTab('all')"
>
{{ __('Open issues') }}
</button>
</gl-button>
</div>
</div>
</div>
......
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