debian-mirror-gitlab/app/assets/javascripts/boards/components/modal/tabs.vue

36 lines
965 B
Vue
Raw Normal View History

2018-11-08 19:23:39 +05:30
<script>
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' }">
<a href="#" role="button" @click.prevent="changeTab('all');">
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' }">
<a href="#" role="button" @click.prevent="changeTab('selected');">
Selected issues <span class="badge badge-pill"> {{ selectedCount }} </span>
2018-11-08 19:23:39 +05:30
</a>
</li>
</ul>
</div>
</template>