summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorKushal Pandya <kushal@gitlab.com>2018-03-05 18:09:43 +0530
committerKushal Pandya <kushal@gitlab.com>2018-03-05 18:09:43 +0530
commit8b44ad6e6ab5408dca800b9cdb6a29335704109a (patch)
treee3118ea0cbe88901addb9017df9cecd78ec4fe0e /app/assets
parent2e5497f0057021daa57d3e8958c840f6b8a82098 (diff)
downloadgitlab-ce-8b44ad6e6ab5408dca800b9cdb6a29335704109a.tar.gz
LabelsSelect DropdownTitle Component
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_title.vue30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_title.vue b/app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_title.vue
new file mode 100644
index 00000000000..7da82e90e29
--- /dev/null
+++ b/app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_title.vue
@@ -0,0 +1,30 @@
+<script>
+export default {
+ props: {
+ canEdit: {
+ type: Boolean,
+ required: true,
+ },
+ },
+};
+</script>
+
+<template>
+ <div class="title hide-collapsed append-bottom-10">
+ {{ __('Labels') }}
+ <template v-if="canEdit">
+ <i
+ aria-hidden="true"
+ class="fa fa-spinner fa-spin block-loading"
+ data-hidden="true"
+ >
+ </i>
+ <button
+ type="button"
+ class="edit-link btn btn-blank pull-right js-sidebar-dropdown-toggle"
+ >
+ {{ __('Edit') }}
+ </button>
+ </template>
+ </div>
+</template>