|
@ -140,6 +140,8 @@ export default class ContactsView extends Vue { |
|
|
apiServer = ""; |
|
|
apiServer = ""; |
|
|
contact: Contact | null = null; |
|
|
contact: Contact | null = null; |
|
|
giveRecords: Array<GiveServerRecord> = []; |
|
|
giveRecords: Array<GiveServerRecord> = []; |
|
|
|
|
|
alertTitle = ""; |
|
|
|
|
|
alertMessage = ""; |
|
|
|
|
|
|
|
|
// 'created' hook runs when the Vue instance is first created |
|
|
// 'created' hook runs when the Vue instance is first created |
|
|
async created() { |
|
|
async created() { |
|
@ -200,7 +202,6 @@ export default class ContactsView extends Vue { |
|
|
this.alertTitle = "Error With Server"; |
|
|
this.alertTitle = "Error With Server"; |
|
|
this.alertMessage = |
|
|
this.alertMessage = |
|
|
"Got an error retrieving your given time from the server."; |
|
|
"Got an error retrieving your given time from the server."; |
|
|
this.isAlertVisible = true; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const url2 = |
|
|
const url2 = |
|
@ -226,7 +227,6 @@ export default class ContactsView extends Vue { |
|
|
this.alertTitle = "Error With Server"; |
|
|
this.alertTitle = "Error With Server"; |
|
|
this.alertMessage = |
|
|
this.alertMessage = |
|
|
"Got an error retrieving your given time from the server."; |
|
|
"Got an error retrieving your given time from the server."; |
|
|
this.isAlertVisible = true; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const sortedResult: Array<GiveServerRecord> = R.sort( |
|
|
const sortedResult: Array<GiveServerRecord> = R.sort( |
|
@ -238,7 +238,6 @@ export default class ContactsView extends Vue { |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
this.alertTitle = "Error With Server"; |
|
|
this.alertTitle = "Error With Server"; |
|
|
this.alertMessage = error as string; |
|
|
this.alertMessage = error as string; |
|
|
this.isAlertVisible = true; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -316,7 +315,6 @@ export default class ContactsView extends Vue { |
|
|
// Now set that error for the user to see. |
|
|
// Now set that error for the user to see. |
|
|
this.alertTitle = "Error With Server"; |
|
|
this.alertTitle = "Error With Server"; |
|
|
this.alertMessage = userMessage; |
|
|
this.alertMessage = userMessage; |
|
|
this.isAlertVisible = true; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -324,12 +322,7 @@ export default class ContactsView extends Vue { |
|
|
cannotConfirmMessage() { |
|
|
cannotConfirmMessage() { |
|
|
this.alertTitle = "Not Allowed"; |
|
|
this.alertTitle = "Not Allowed"; |
|
|
this.alertMessage = "Only the recipient can confirm final receipt."; |
|
|
this.alertMessage = "Only the recipient can confirm final receipt."; |
|
|
this.isAlertVisible = true; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// This same popup code is in many files. |
|
|
|
|
|
alertTitle = ""; |
|
|
|
|
|
alertMessage = ""; |
|
|
|
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|