mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-15 12:47:58 +00:00
Add initial implementation for loading proflies
This commit is contained in:
@@ -131,7 +131,7 @@ export default {
|
||||
this.noise.connect(this.filter)
|
||||
}
|
||||
},
|
||||
loadProfiles () {
|
||||
populateProfileItems () {
|
||||
this.$http.get('https://localhost:3000/profiles')
|
||||
.then(response => {
|
||||
if (response.status === 200) {
|
||||
@@ -170,6 +170,17 @@ export default {
|
||||
})
|
||||
|
||||
this.profileDialog = false
|
||||
},
|
||||
loadProfile () {
|
||||
this.$http.get('https://localhost:3000/profiles/'.concat(this.profileItems.indexOf(this.selectedProfile) + 1))
|
||||
.then(response => {
|
||||
if (response.status === 200) {
|
||||
console.log(response.data.profile)
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.error(error.response)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user