Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tabs.vue « modal « components « boards « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a71fda9d7c5f6557ccb48372bbfc62778394a75f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<script>
/* eslint-disable @gitlab/vue-require-i18n-strings */
import ModalStore from '../../stores/modal_store';
import modalMixin from '../../mixins/modal_mixins';

export default {
  mixins: [modalMixin],
  data() {
    return ModalStore.store;
  },
  computed: {
    selectedCount() {
      return ModalStore.selectedCount();
    },
  },
  destroyed() {
    this.activeTab = 'all';
  },
};
</script>
<template>
  <div class="top-area gl-mt-3 gl-mb-3">
    <ul class="nav-links issues-state-filters">
      <li :class="{ active: activeTab == 'all' }">
        <a href="#" role="button" @click.prevent="changeTab('all')">
          Open issues <span class="badge badge-pill"> {{ issuesCount }} </span>
        </a>
      </li>
      <li :class="{ active: activeTab == 'selected' }">
        <a href="#" role="button" @click.prevent="changeTab('selected')">
          Selected issues <span class="badge badge-pill"> {{ selectedCount }} </span>
        </a>
      </li>
    </ul>
  </div>
</template>