Clean up vestigle old alert code

This commit is contained in:
Matthew Raymer
2023-07-04 19:29:12 +08:00
parent c859778832
commit 0a020a4069
4 changed files with 4 additions and 32 deletions

View File

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