diff options
author | Phil Hughes <me@iamphill.com> | 2018-03-21 17:28:33 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-03-21 17:28:33 +0000 |
commit | abc674d9f43dfee5f7d32dffa709acf4188768a1 (patch) | |
tree | 91b3e96b68a872fc7dc61d94a12e844670721478 | |
parent | c77cbe7131da3e96f4c16dfcb218e72708c38753 (diff) | |
download | gitlab-ce-ide-file-row-hover-style.tar.gz |
reverted blur listeneride-file-row-hover-style
-rw-r--r-- | app/assets/javascripts/ide/components/new_dropdown/index.vue | 79 |
1 files changed, 40 insertions, 39 deletions
diff --git a/app/assets/javascripts/ide/components/new_dropdown/index.vue b/app/assets/javascripts/ide/components/new_dropdown/index.vue index 00896e04e8b..769e9b79cad 100644 --- a/app/assets/javascripts/ide/components/new_dropdown/index.vue +++ b/app/assets/javascripts/ide/components/new_dropdown/index.vue @@ -1,47 +1,49 @@ <script> -import { mapActions } from 'vuex'; -import icon from '~/vue_shared/components/icon.vue'; -import newModal from './modal.vue'; -import upload from './upload.vue'; + import { mapActions } from 'vuex'; + import icon from '~/vue_shared/components/icon.vue'; + import newModal from './modal.vue'; + import upload from './upload.vue'; -export default { - components: { - icon, - newModal, - upload, - }, - props: { - branch: { - type: String, - required: true, + export default { + components: { + icon, + newModal, + upload, }, - path: { - type: String, - required: true, + props: { + branch: { + type: String, + required: true, + }, + path: { + type: String, + required: true, + }, }, - }, - data() { - return { - openModal: false, - modalType: '', - dropdownOpen: false, - }; - }, - methods: { - ...mapActions(['createTempEntry']), - createNewItem(type) { - this.modalType = type; - this.openModal = true; - this.dropdownOpen = false; + data() { + return { + openModal: false, + modalType: '', + dropdownOpen: false, + }; }, - hideModal() { - this.openModal = false; + methods: { + ...mapActions([ + 'createTempEntry', + ]), + createNewItem(type) { + this.modalType = type; + this.openModal = true; + this.dropdownOpen = false; + }, + hideModal() { + this.openModal = false; + }, + openDropdown() { + this.dropdownOpen = !this.dropdownOpen; + }, }, - openDropdown() { - this.dropdownOpen = !this.dropdownOpen; - }, - }, -}; + }; </script> <template> @@ -57,7 +59,6 @@ export default { class="btn btn-sm btn-default dropdown-toggle add-to-tree" aria-label="Create new file or directory" @click.stop="openDropdown()" - @blur="openDropdown" > <icon name="plus" |