diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index 69569e2..ed2c7df 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -317,7 +317,6 @@ diff --git a/src/views/SeedBackupView.vue b/src/views/SeedBackupView.vue index 359fea0..f896b04 100644 --- a/src/views/SeedBackupView.vue +++ b/src/views/SeedBackupView.vue @@ -103,6 +103,8 @@ import AlertMessage from "@/components/AlertMessage"; export default class SeedBackupView extends Vue { activeAccount = null; showSeed = false; + alertMessage = ""; + alertTitle = ""; // 'created' hook runs when the Vue instance is first created async created() { @@ -118,16 +120,11 @@ export default class SeedBackupView extends Vue { console.error("Got an error loading an identity:", err); this.alertTitle = "Error Loading Account"; this.alertMessage = "Got an error loading your seed data."; - this.isAlertVisible = true; } } showSeedPhrase() { this.showSeed = true; } - - // This same popup code is in many files. - alertMessage = ""; - alertTitle = ""; } diff --git a/src/views/StatisticsView.vue b/src/views/StatisticsView.vue index af9797b..36684b8 100644 --- a/src/views/StatisticsView.vue +++ b/src/views/StatisticsView.vue @@ -187,19 +187,6 @@ export default class StatisticsView extends Vue { alertTitle = ""; 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) {