diff options
Diffstat (limited to 'app/assets/javascripts/repo/components/new_dropdown/index.vue')
-rw-r--r-- | app/assets/javascripts/repo/components/new_dropdown/index.vue | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/repo/components/new_dropdown/index.vue b/app/assets/javascripts/repo/components/new_dropdown/index.vue index 53baa02c344..5e93ce7bc0f 100644 --- a/app/assets/javascripts/repo/components/new_dropdown/index.vue +++ b/app/assets/javascripts/repo/components/new_dropdown/index.vue @@ -1,4 +1,5 @@ <script> + import { mapState } from 'vuex'; import newModal from './modal.vue'; export default { @@ -11,6 +12,11 @@ modalType: '', }; }, + computed: { + ...mapState([ + 'path', + ]), + }, methods: { createNewItem(type) { this.modalType = type; @@ -64,6 +70,7 @@ <new-modal v-if="openModal" :type="modalType" + :path="path" @toggle="toggleModalOpen" /> </div> |