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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/emoji/components/picker.vue')
-rw-r--r--app/assets/javascripts/emoji/components/picker.vue13
1 files changed, 12 insertions, 1 deletions
diff --git a/app/assets/javascripts/emoji/components/picker.vue b/app/assets/javascripts/emoji/components/picker.vue
index fcc54f17466..238f0d81b22 100644
--- a/app/assets/javascripts/emoji/components/picker.vue
+++ b/app/assets/javascripts/emoji/components/picker.vue
@@ -1,6 +1,6 @@
<!-- eslint-disable vue/multi-word-component-names -->
<script>
-import { GlIcon, GlDropdown, GlSearchBoxByType } from '@gitlab/ui';
+import { GlIcon, GlDropdown, GlDropdownItem, GlSearchBoxByType } from '@gitlab/ui';
import { findLastIndex } from 'lodash';
import VirtualList from 'vue-virtual-scroll-list';
import { CATEGORY_NAMES, getEmojiCategoryMap, state } from '~/emoji';
@@ -13,11 +13,17 @@ export default {
components: {
GlIcon,
GlDropdown,
+ GlDropdownItem,
GlSearchBoxByType,
VirtualList,
Category,
EmojiList,
},
+ inject: {
+ newCustomEmojiPath: {
+ default: '',
+ },
+ },
props: {
toggleClass: {
type: [Array, String, Object],
@@ -167,6 +173,11 @@ export default {
</virtual-list>
</template>
</emoji-list>
+ <template v-if="newCustomEmojiPath" #footer>
+ <gl-dropdown-item :href="newCustomEmojiPath">
+ {{ __('Create new emoji') }}
+ </gl-dropdown-item>
+ </template>
</gl-dropdown>
</div>
</template>