forked from jsnbuchanan/crowd-funder-for-time-pwa
Clean up vestigle old alert code
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user