Skip to content

Commit

Permalink
Merge pull request #273 from yosyad/bugfix/deleted-file-message-incld…
Browse files Browse the repository at this point in the history
…es-undefined

bugfix: "You deleted flag undefined"
  • Loading branch information
zhouzhuojie authored Jun 27, 2019
2 parents 7979b1d + c7944df commit acf2fe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion browser/flagr-ui/src/components/Flag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,12 @@ export default {
},
methods: {
deleteFlag () {
const flagId = this.flagId;
Axios.delete(
`${API_URL}/flags/${this.flagId}`
).then(() => {
this.$router.replace({name: 'home'})
this.$message.success(`You deleted flag ${this.flagId}`)
this.$message.success(`You deleted flag ${flagId}`)
}, handleErr.bind(this))
},
putFlag (flag) {
Expand Down

0 comments on commit acf2fe2

Please sign in to comment.