Add close to tags popup (#9376)

This commit is contained in:
Keith Holliday
2017-11-02 14:25:37 -06:00
committed by GitHub
parent a208ba4aba
commit 042afe1df3
2 changed files with 20 additions and 1 deletions

View File

@@ -125,7 +125,7 @@
.category-label(v-for='tagName in truncatedSelectedTags', :title="tagName") {{ tagName }}
.tags-more(v-if='remainingSelectedTags.length > 0') +{{ $t('more', { count: remainingSelectedTags.length }) }}
.dropdown-toggle
tags-popup(v-if="showTagsSelect", :tags="user.tags", v-model="task.tags")
tags-popup(v-if="showTagsSelect", :tags="user.tags", v-model="task.tags", @close='closeTagsPopup()')
.option(v-if="task.type === 'habit'")
label(v-once) {{ $t('resetStreak') }}
@@ -671,6 +671,9 @@ export default {
},
methods: {
...mapActions({saveTask: 'tasks:save', destroyTask: 'tasks:destroy', createTask: 'tasks:create'}),
closeTagsPopup () {
this.showTagsSelect = false;
},
sortedChecklist (data) {
let sorting = clone(this.task.checklist);
let movingItem = sorting[data.oldIndex];