A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
32
$lang,33
async doSearch() {34
this.results = [];35
if(this.isQueryEmpty()) {36
this.reset();37
return;38
}39
this.loading = true;40
this.more = true;41
this.searching = true;
65
const languages = await http`get::/api/languages`();66
this.languages = languages.map(language => language.toUpperCase());67
},68
isQueryEmpty() {69
return this.query.name === '' && this.query.country === '' && this.query.language === '';70
},71
reset() {72
this.query = {73
name : '',74
country: '',75
language: '',76
page: 077
};78
this.searching = false;