From 0a020a40691f61986133e3855ce7cca55f641c52 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Tue, 4 Jul 2023 19:29:12 +0800 Subject: [PATCH] Clean up vestigle old alert code --- src/views/AccountViewView.vue | 5 ----- src/views/ContactAmountsView.vue | 11 ++--------- src/views/SeedBackupView.vue | 7 ++----- src/views/StatisticsView.vue | 13 ------------- 4 files changed, 4 insertions(+), 32 deletions(-) diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index 69569e28..ed2c7df0 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 359fea0e..f896b042 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 af9797ba..36684b80 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) {