diff options
author | Phil Hughes <me@iamphill.com> | 2018-06-06 11:03:44 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-06 13:19:29 +0300 |
commit | 34dae2285c5f868d80300806fd969b9b2ae674e0 (patch) | |
tree | af3f45fadfd09b0d3fe8162a91c14a1fff92a802 /app/assets/javascripts/ide/components/merge_requests/dropdown.vue | |
parent | 64360f4f63d471bb391f8d3deecff9e6744d43fb (diff) |
fixed spacing
removed need for custom dropdown stuff
Diffstat (limited to 'app/assets/javascripts/ide/components/merge_requests/dropdown.vue')
-rw-r--r-- | app/assets/javascripts/ide/components/merge_requests/dropdown.vue | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/app/assets/javascripts/ide/components/merge_requests/dropdown.vue b/app/assets/javascripts/ide/components/merge_requests/dropdown.vue index 5e29712a8df..1b29b71062a 100644 --- a/app/assets/javascripts/ide/components/merge_requests/dropdown.vue +++ b/app/assets/javascripts/ide/components/merge_requests/dropdown.vue @@ -10,23 +10,27 @@ export default { Tab, List, }, + props: { + show: { + type: Boolean, + required: true, + }, + }, computed: { ...mapGetters('mergeRequests', ['assignedData', 'createdData']), createdMergeRequestLength() { return this.createdData.mergeRequests.length; }, }, - methods: { - hideDropdown() { - this.$emit('hide'); - }, - }, }; </script> <template> <div class="dropdown-menu ide-merge-requests-dropdown p-0"> - <tabs stop-propagation> + <tabs + v-if="show" + stop-propagation + > <tab active> <template slot="title"> {{ __('Created by me') }} @@ -37,7 +41,6 @@ export default { <list type="created" :empty-text="__('You have not created any merge requests')" - @hide="hideDropdown" /> </tab> <tab> @@ -50,7 +53,6 @@ export default { <list type="assigned" :empty-text="__('You do not have any assigned merge requests')" - @hide="hideDropdown" /> </tab> </tabs> |