forked from jsnbuchanan/crowd-funder-for-time-pwa
Clean up vestigle old alert code
This commit is contained in:
@@ -317,7 +317,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import "dexie-export-import";
|
import "dexie-export-import";
|
||||||
import * as R from "ramda";
|
import * as R from "ramda";
|
||||||
|
|
||||||
import { Component, Vue } from "vue-facing-decorator";
|
import { Component, Vue } from "vue-facing-decorator";
|
||||||
import { useClipboard } from "@vueuse/core";
|
import { useClipboard } from "@vueuse/core";
|
||||||
|
|
||||||
@@ -419,7 +418,6 @@ export default class AccountViewView extends Vue {
|
|||||||
"Clear your cache and start over (after data backup).";
|
"Clear your cache and start over (after data backup).";
|
||||||
console.error("Telling user to clear cache at page create because:", err);
|
console.error("Telling user to clear cache at page create because:", err);
|
||||||
this.alertTitle = "Error Creating Account";
|
this.alertTitle = "Error Creating Account";
|
||||||
this.isAlertVisible = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -437,7 +435,6 @@ export default class AccountViewView extends Vue {
|
|||||||
err
|
err
|
||||||
);
|
);
|
||||||
this.alertTitle = "Error Updating Contact Setting";
|
this.alertTitle = "Error Updating Contact Setting";
|
||||||
this.isAlertVisible = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -455,11 +452,9 @@ export default class AccountViewView extends Vue {
|
|||||||
|
|
||||||
this.alertTitle = "Download Started";
|
this.alertTitle = "Download Started";
|
||||||
this.alertMessage = "See your downloads directory for the backup.";
|
this.alertMessage = "See your downloads directory for the backup.";
|
||||||
this.isAlertVisible = true;
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.alertTitle = "Export Error";
|
this.alertTitle = "Export Error";
|
||||||
this.alertMessage = "See console logs for more info.";
|
this.alertMessage = "See console logs for more info.";
|
||||||
this.isAlertVisible = true;
|
|
||||||
console.error("Export Error:", error);
|
console.error("Export Error:", error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -103,6 +103,8 @@ import AlertMessage from "@/components/AlertMessage";
|
|||||||
export default class SeedBackupView extends Vue {
|
export default class SeedBackupView extends Vue {
|
||||||
activeAccount = null;
|
activeAccount = null;
|
||||||
showSeed = false;
|
showSeed = false;
|
||||||
|
alertMessage = "";
|
||||||
|
alertTitle = "";
|
||||||
|
|
||||||
// 'created' hook runs when the Vue instance is first created
|
// 'created' hook runs when the Vue instance is first created
|
||||||
async created() {
|
async created() {
|
||||||
@@ -118,16 +120,11 @@ export default class SeedBackupView extends Vue {
|
|||||||
console.error("Got an error loading an identity:", err);
|
console.error("Got an error loading an identity:", err);
|
||||||
this.alertTitle = "Error Loading Account";
|
this.alertTitle = "Error Loading Account";
|
||||||
this.alertMessage = "Got an error loading your seed data.";
|
this.alertMessage = "Got an error loading your seed data.";
|
||||||
this.isAlertVisible = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
showSeedPhrase() {
|
showSeedPhrase() {
|
||||||
this.showSeed = true;
|
this.showSeed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This same popup code is in many files.
|
|
||||||
alertMessage = "";
|
|
||||||
alertTitle = "";
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -187,19 +187,6 @@ export default class StatisticsView extends Vue {
|
|||||||
|
|
||||||
alertTitle = "";
|
alertTitle = "";
|
||||||
alertMessage = "";
|
alertMessage = "";
|
||||||
isAlertVisible = false;
|
|
||||||
|
|
||||||
public setAlert(title, message) {
|
|
||||||
this.alertTitle = title;
|
|
||||||
this.alertMessage = message;
|
|
||||||
this.isAlertVisible = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public onClickClose() {
|
|
||||||
this.isAlertVisible = false;
|
|
||||||
this.alertTitle = "";
|
|
||||||
this.alertMessage = "";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function ExportToSVG(rendererSVG, filename) {
|
function ExportToSVG(rendererSVG, filename) {
|
||||||
|
|||||||
Reference in New Issue
Block a user