Successful alert for the user with Vue

0

I have a session in my application, where the user deactivates and activates documents, at the moment he activates or deactivates wanted to show a success alert in the vue.js pattern, but I do not know how.

methods: {
  handleDesactive() {
    if ( this.typeShow != 6 ) {
      axios.get('/atas/${this.id}/desativar')
        .then( res => eventHub.$emit('removeCard', this.id) );
        alert('You clicked the button!');
    } else {
      axios.get('/atas/${this.id}/ativar')
        .then( res => eventHub.$emit('removeCard', this.id) );
    }
  }
}
    
asked by anonymous 12.12.2018 / 20:24

0 answers