Skip to content

Commit

Permalink
Clean searched tags after saving. Clean search tags field when tag added
Browse files Browse the repository at this point in the history
  • Loading branch information
dpcat237 committed May 10, 2020
1 parent a7a4645 commit e0a124f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#### Features
- Share link from another app
- Preload title of the page
- Clean searched tags after saving
- Clean search tags field when tag added

# 0.1.0 (2020.05.09)

#### Features
Expand Down
3 changes: 3 additions & 0 deletions app/components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@
name: this.tagField,
}
this.tagsAdded.push(tag)
this.tagField = ""
},
addSelectedTag(tag) {
this.tagsAdded.push(tag)
this.tagField = ""
},
cleanFields() {
this.linkId = ""
Expand All @@ -141,6 +143,7 @@
this.titleField = ""
this.tagField = ""
this.tagsAdded = []
this.$store.dispatch('cleanTags')
},
getLinkDetails() {
if (this.urlField === "") {
Expand Down
3 changes: 3 additions & 0 deletions app/store/modules/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class Tag {

export default {
actions: {
cleanTags({ commit }) {
commit('updateData', { key: 'tags', value: [] })
},
filterTags({ commit }, prefix) {
const options = {
headers: {
Expand Down

0 comments on commit e0a124f

Please sign in to comment.