= [];
apiServer = "";
isHiddenSpinner = true;
- alertTitle = "";
- alertMessage = "";
accounts: AccountsSchema;
numAccounts = 0;
@@ -289,11 +291,6 @@ export default class HomeView extends Vue {
}
}
- private setAlert(title, message) {
- this.alertTitle = title;
- this.alertMessage = message;
- }
-
// Helper functions for readability
isGiveCreationError(result) {
diff --git a/src/views/ContactQRScanShowView.vue b/src/views/ContactQRScanShowView.vue
index c932a499..cdcb9f6f 100644
--- a/src/views/ContactQRScanShowView.vue
+++ b/src/views/ContactQRScanShowView.vue
@@ -34,6 +34,13 @@ import { Account } from "@/db/tables/accounts";
// eslint-disable-next-line @typescript-eslint/no-var-requires
const Buffer = require("buffer/").Buffer;
+interface Notification {
+ group: string;
+ type: string;
+ title: string;
+ text: string;
+}
+
@Component({
components: {
QRCodeVue3,
@@ -41,6 +48,8 @@ const Buffer = require("buffer/").Buffer;
},
})
export default class ContactQRScanShow extends Vue {
+ $notify!: (notification: Notification, timeout?: number) => void;
+
activeDid = "";
apiServer = "";
qrValue = "";
diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue
index 740ad885..56dd7571 100644
--- a/src/views/ContactsView.vue
+++ b/src/views/ContactsView.vue
@@ -202,10 +202,6 @@
This identity has no contacts.
-
@@ -224,17 +220,25 @@ import {
SERVICE_ID,
} from "@/libs/endorserServer";
import { Component, Vue } from "vue-facing-decorator";
-import AlertMessage from "@/components/AlertMessage";
import QuickNav from "@/components/QuickNav";
import EntityIcon from "@/components/EntityIcon";
// eslint-disable-next-line @typescript-eslint/no-var-requires
const Buffer = require("buffer/").Buffer;
+interface Notification {
+ group: string;
+ type: string;
+ title: string;
+ text: string;
+}
+
@Component({
- components: { AlertMessage, QuickNav, EntityIcon },
+ components: { QuickNav, EntityIcon },
})
export default class ContactsView extends Vue {
+ $notify!: (notification: Notification, timeout?: number) => void;
+
activeDid = "";
apiServer = "";
contacts: Array = [];
@@ -256,8 +260,6 @@ export default class ContactsView extends Vue {
showGiveNumbers = false;
showGiveTotals = true;
showGiveConfirmed = true;
- alertTitle = "";
- alertMessage = "";
async created() {
await db.open();
diff --git a/src/views/DiscoverView.vue b/src/views/DiscoverView.vue
index 525a9260..a893ffe3 100644
--- a/src/views/DiscoverView.vue
+++ b/src/views/DiscoverView.vue
@@ -181,8 +181,6 @@
/>
-
-
@@ -201,7 +199,6 @@ import { Contact } from "@/db/tables/contacts";
import { BoundingBox, MASTER_SETTINGS_KEY } from "@/db/tables/settings";
import { accessToken } from "@/libs/crypto";
import { didInfo, ProjectData } from "@/libs/endorserServer";
-import AlertMessage from "@/components/AlertMessage";
import QuickNav from "@/components/QuickNav";
import InfiniteScroll from "@/components/InfiniteScroll";
import EntityIcon from "@/components/EntityIcon";
@@ -210,10 +207,16 @@ const DEFAULT_LAT_LONG_DIFF = 0.01;
const WORLD_ZOOM = 2;
const DEFAULT_ZOOM = 2;
+interface Notification {
+ group: string;
+ type: string;
+ title: string;
+ text: string;
+}
+
@Component({
components: {
LRectangle,
- AlertMessage,
QuickNav,
InfiniteScroll,
EntityIcon,
@@ -223,13 +226,13 @@ const DEFAULT_ZOOM = 2;
},
})
export default class DiscoverView extends Vue {
+ $notify!: (notification: Notification, timeout?: number) => void;
+
activeDid = "";
allContacts: Array = [];
allMyDids: Array = [];
apiServer = "";
searchTerms = "";
- alertMessage = "";
- alertTitle = "";
projects: ProjectData[] = [];
isChoosingSearchBox = false;
isLocalActive = true;
diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
index 6031e0b6..4c238bac 100644
--- a/src/views/HomeView.vue
+++ b/src/views/HomeView.vue
@@ -196,10 +196,6 @@
-
@@ -211,14 +207,22 @@ import { MASTER_SETTINGS_KEY } from "@/db/tables/settings";
import { accessToken } from "@/libs/crypto";
import { createAndSubmitGive, didInfo } from "@/libs/endorserServer";
import { Contact } from "@/db/tables/contacts";
-import AlertMessage from "@/components/AlertMessage";
import QuickNav from "@/components/QuickNav";
import EntityIcon from "@/components/EntityIcon";
+interface Notification {
+ group: string;
+ type: string;
+ title: string;
+ text: string;
+}
+
@Component({
- components: { GiftedDialog, AlertMessage, QuickNav, EntityIcon },
+ components: { GiftedDialog, QuickNav, EntityIcon },
})
export default class HomeView extends Vue {
+ $notify!: (notification: Notification, timeout?: number) => void;
+
activeDid = "";
allContacts: Array = [];
allMyDids: Array = [];
@@ -228,8 +232,6 @@ export default class HomeView extends Vue {
feedPreviousOldestId = null;
feedLastViewedId = null;
isHiddenSpinner = true;
- alertTitle = "";
- alertMessage = "";
numAccounts = 0;
async beforeCreate() {
@@ -509,11 +511,6 @@ export default class HomeView extends Vue {
}
}
- private setAlert(title, message) {
- this.alertTitle = title;
- this.alertMessage = message;
- }
-
// Helper functions for readability
isGiveCreationError(result) {
diff --git a/src/views/IdentitySwitcherView.vue b/src/views/IdentitySwitcherView.vue
index 41fdfef5..a21d1ac3 100644
--- a/src/views/IdentitySwitcherView.vue
+++ b/src/views/IdentitySwitcherView.vue
@@ -62,11 +62,6 @@
>
No Identity
-
-