2018-11-08 19:23:39 +05:30
|
|
|
<script>
|
2020-04-22 19:07:51 +05:30
|
|
|
/* eslint-disable @gitlab/vue-require-i18n-strings */
|
2018-12-13 13:39:08 +05:30
|
|
|
import ModalStore from '../../stores/modal_store';
|
|
|
|
import modalMixin from '../../mixins/modal_mixins';
|
2018-11-08 19:23:39 +05:30
|
|
|
|
2018-12-13 13:39:08 +05:30
|
|
|
export default {
|
|
|
|
mixins: [modalMixin],
|
|
|
|
data() {
|
|
|
|
return ModalStore.store;
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
selectedCount() {
|
|
|
|
return ModalStore.selectedCount();
|
2018-11-08 19:23:39 +05:30
|
|
|
},
|
2018-12-13 13:39:08 +05:30
|
|
|
},
|
|
|
|
destroyed() {
|
|
|
|
this.activeTab = 'all';
|
|
|
|
},
|
|
|
|
};
|
2018-11-08 19:23:39 +05:30
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<div class="top-area prepend-top-10 append-bottom-10">
|
|
|
|
<ul class="nav-links issues-state-filters">
|
2019-02-15 15:39:39 +05:30
|
|
|
<li :class="{ active: activeTab == 'all' }">
|
2019-03-02 22:35:43 +05:30
|
|
|
<a href="#" role="button" @click.prevent="changeTab('all')">
|
2019-02-15 15:39:39 +05:30
|
|
|
Open issues <span class="badge badge-pill"> {{ issuesCount }} </span>
|
2018-11-08 19:23:39 +05:30
|
|
|
</a>
|
|
|
|
</li>
|
2019-02-15 15:39:39 +05:30
|
|
|
<li :class="{ active: activeTab == 'selected' }">
|
2019-03-02 22:35:43 +05:30
|
|
|
<a href="#" role="button" @click.prevent="changeTab('selected')">
|
2019-02-15 15:39:39 +05:30
|
|
|
Selected issues <span class="badge badge-pill"> {{ selectedCount }} </span>
|
2018-11-08 19:23:39 +05:30
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</template>
|