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
<?php | |
class BadWordFilter | |
{ | |
/** | |
* @var array | |
**/ | |
public $badWords = ['fuck', 'idiot']; |
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
downloadPlan() { | |
let formData = document.getElementById("planComponent").innerHTML | |
axios.post('/api/training-plans/download', {responseType: 'arraybuffer', data: formData}) | |
.then(response => { | |
this.downloadFile(response, 'customFilename') | |
this.$toasted.show('Nu har nu downloadet planen', {type: 'success'}) | |
}, response => { | |
this.$toasted.show('Planen kunne ikke downloades, prøv igen', {type: 'error'}) | |
console.warn('error from download_contract') |
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
downloadPlan() { | |
let formData = document.getElementById("planComponent").innerHTML | |
axios.post('/api/training-plans/download', {responseType: 'arraybuffer', data: formData}) | |
.then(response => { | |
this.downloadFile(response, 'customFilename') | |
this.$toasted.show('Nu har nu downloadet planen', {type: 'success'}) | |
}, response => { | |
this.$toasted.show('Planen kunne ikke downloades, prøv igen', {type: 'error'}) | |
console.warn('error from download_contract') |
OlderNewer