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

sidebar_header.vue « sidebar « components « alert_details « vue_shared « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fd40b5d9f6560222c2c298a8fe78bbd7442a0123 (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
37
38
39
40
41
<script>
import ToggleSidebar from '~/vue_shared/components/sidebar/toggle_sidebar.vue';
import SidebarTodo from './sidebar_todo.vue';

export default {
  components: {
    ToggleSidebar,
    SidebarTodo,
  },
  props: {
    alert: {
      type: Object,
      required: true,
    },
    projectPath: {
      type: String,
      required: true,
    },
    sidebarCollapsed: {
      type: Boolean,
      required: true,
    },
  },
};
</script>

<template>
  <div class="block gl-display-flex gl-justify-content-space-between">
    <span class="issuable-header-text hide-collapsed">
      {{ __('To Do') }}
    </span>
    <sidebar-todo
      v-if="!sidebarCollapsed"
      :project-path="projectPath"
      :alert="alert"
      :sidebar-collapsed="sidebarCollapsed"
      @alert-error="$emit('alert-error', $event)"
    />
    <toggle-sidebar :collapsed="sidebarCollapsed" @toggle="$emit('toggle-sidebar')" />
  </div>
</template>