Created
February 5, 2018 12:00
-
-
Save mitrallex/725ac4b0e089679da8a8a26f76481358 to your computer and use it in GitHub Desktop.
laravel-file-hosting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| deleteFile() { | |
| axios.post('files/delete/' + this.deletingFile.id) | |
| .then(response => { | |
| this.showNotification('File successfully deleted!', true); | |
| this.fetchFile(this.activeTab, this.pagination.current_page); | |
| }) | |
| .catch(error => { | |
| this.errors = error.response.data.errors(); | |
| this.showNotification('Something went wrong! Please try again later.', false); | |
| this.fetchFile(this.activeTab, this.pagination.current_page); | |
| }); | |
| this.cancelDeleting(); | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment