debian-mirror-gitlab/app/assets/javascripts/notes/components/notes_activity_header.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
970 B
Vue
Raw Normal View History

2022-11-25 23:54:43 +05:30
<script>
import DiscussionFilter from './discussion_filter.vue';
export default {
components: {
TimelineToggle: () => import('./timeline_toggle.vue'),
DiscussionFilter,
},
inject: {
showTimelineViewToggle: {
default: false,
},
},
props: {
notesFilters: {
type: Array,
required: true,
},
notesFilterValue: {
type: Number,
default: undefined,
required: false,
},
},
};
</script>
<template>
<div
class="gl-display-flex gl-sm-align-items-center gl-flex-direction-column gl-sm-flex-direction-row gl-justify-content-space-between gl-pt-5 gl-mt-5 gl-border-t"
>
<h2 class="gl-font-size-h1 gl-m-0">{{ __('Activity') }}</h2>
<div class="gl-display-flex gl-gap-3 gl-w-full gl-sm-w-auto gl-mt-3 gl-sm-mt-0">
<timeline-toggle v-if="showTimelineViewToggle" />
<discussion-filter :filters="notesFilters" :selected-value="notesFilterValue" />
</div>
</div>
</template>