Replaced all alertMessage calls with notiwind

This commit is contained in:
Jose Olarte III
2023-07-21 20:26:00 +08:00
parent eff67c2a4a
commit f55e50067f
13 changed files with 615 additions and 153 deletions

View File

@@ -85,7 +85,15 @@ export default class ContactQRScanShow extends Vue {
const accounts = await accountsDB.accounts.toArray();
const account = R.find((acc) => acc.did === this.activeDid, accounts);
if (!account) {
this.alertMessage = "You have no identity yet.";
this.$notify(
{
group: "alert",
type: "warning",
title: "",
text: "You have no identity yet.",
},
-1,
);
} else {
const identity = await this.getIdentity(this.activeDid);
const publicKeyHex = identity.keys[0].publicKeyHex;