Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Commit

Permalink
Hotfixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisdelicata committed May 29, 2021
1 parent c2a9449 commit 6671a98
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
10 changes: 5 additions & 5 deletions pages/gedcom-export/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@
},
methods: {
async handleExportFiles() {
await this.$axios
const response = this.$axios
.$post("/api/gedcom-export", {}, {
headers: {
'content-type': 'multipart/form-data',
'Access-Control-Allow-Origin': '*'
}
})
},
},)
this.inProgress = true;
this.isLoading = false;
this.generatedFile = response.file;
Expand All @@ -113,8 +113,8 @@
// this.interval = setInterval(() => {
// this.checkJobCompleted();
// }, 3000)
.
catch(error => {
(error => {
this.error = true;
this.inProgress = false;
this.errors = error.response.data.errors;
Expand Down
13 changes: 9 additions & 4 deletions pages/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,19 @@ export default {
},
methods: {
async loginSocial(provider) {
loginSocial(provider) {
this.provider = provider
const newWindow = openWindow('', 'message')
let url = '/api/login/' + provider;
await this.$axios.get(url)
newWindow.location.href = response.data;
.catch(error => {});
axios.get(url)
.then(res => {
window.location.href = url;
})
.catch(err => {
console.log(err);
})
},
login() {
this.$v.$touch();
if (this.$v.$invalid) {
Expand Down
2 changes: 1 addition & 1 deletion pages/password/reset/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default {
password_confirmation: this.password_confirmation
})
this.message = response.msg;
this.error_msg = response.error_msg;
this.error_msg = response.error_msg
.catch(error => {
this.error = error.msg;
this.errors = error.response.data.errors;
Expand Down
5 changes: 2 additions & 3 deletions pages/personevent/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,9 @@
}
},
async getpeople() {
const response = await this.$axios.$get("/api/person")
const response = await this.$axios.$get("/api/person")
this.people = response;
})
this.people = response;
},
},
created() {
Expand Down

0 comments on commit 6671a98

Please sign in to comment.