User bearbeiten fix
Noch ein fix
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user