User bearbeiten fix

Noch ein fix
This commit is contained in:
Georg Reisinger
2019-05-15 19:58:41 +02:00
parent 28f75bf88f
commit 471089fd19
5 changed files with 15 additions and 43 deletions

View File

@ -27,8 +27,8 @@ var vue = new Vue({
image: '',
idToken: '',
mid: '',
showUploadButtons: ''
showUploadButtons: '',
uploadfinish: false
},
methods: {
backToDash(){
@ -49,7 +49,7 @@ var vue = new Vue({
vm.idToken = idToken;
vm.mid = token;
vm.dbUserUpdate(vm.idToken, vm.name, vm.image, vm.mid);
window.location.href = "/";
//window.location.href = "/";
})
.catch(err => {
console.error("Msg Error: ", err);
@ -57,7 +57,7 @@ var vue = new Vue({
vm.mid = "";
vm.dbUserUpdate(vm.idToken, vm.name, vm.image, vm.mid);
window.location.href = "/";
//window.location.href = "/";
})
}).catch(function (error) {
@ -65,7 +65,7 @@ var vue = new Vue({
});
}else{
this.dbUserUpdate(this.idToken, this.name, this.image, this.mid);
window.location.href = "/";
//window.location.href = "/";
}
},
@ -101,7 +101,6 @@ var vue = new Vue({
displayName: name,
photoURL: pic
}).then(async function () {
}).catch(function (error) {
console.error(error)
});
@ -117,6 +116,7 @@ var vue = new Vue({
name: name
},
success(result) {
vm.uploadfinish = true;
//vm.startGetUser();
},
error(err) {
@ -169,6 +169,7 @@ var vue = new Vue({
}).catch(err => console.error(err));
},
onFileChange(e) {
this.uploadfinish = false;
var files = e.target.files || e.dataTransfer.files;
if (!files.length)
return;