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