-
+
@@ -82,9 +83,10 @@ import { IIdentifier } from "@veramo/core";
import InfiniteScroll from "@/components/InfiniteScroll";
import AlertMessage from "@/components/AlertMessage";
import QuickNav from "@/components/QuickNav";
+import EntityIcon from "@/components/EntityIcon";
@Component({
- components: { InfiniteScroll, AlertMessage, QuickNav },
+ components: { InfiniteScroll, AlertMessage, QuickNav, EntityIcon },
})
export default class ProjectsView extends Vue {
apiServer = "";
@@ -126,8 +128,15 @@ export default class ProjectsView extends Vue {
}
} catch (error) {
console.error("Got error loading projects:", error.message);
- this.alertTitle = "Error";
- this.alertMessage = "Got an error loading projects:" + error.message;
+ this.$notify(
+ {
+ group: "alert",
+ type: "danger",
+ title: "Error",
+ text: "Got an error loading projects: " + error.message,
+ },
+ -1,
+ );
} finally {
this.isLoading = false;
}
@@ -196,8 +205,15 @@ export default class ProjectsView extends Vue {
if (this.numAccounts === 0) {
console.error("No accounts found.");
- this.alertTitle = "Error";
- this.alertMessage = "You need an identity to load your projects.";
+ this.$notify(
+ {
+ group: "alert",
+ type: "danger",
+ title: "Error",
+ text: "You need an identity to load your projects.",
+ },
+ -1,
+ );
} else {
const identity = await this.getIdentity(activeDid);
this.current = identity;
@@ -205,8 +221,15 @@ export default class ProjectsView extends Vue {
}
} catch (err) {
console.log("Error initializing:", err);
- this.alertTitle = "Error";
- this.alertMessage = "Something went wrong loading your projects.";
+ this.$notify(
+ {
+ group: "alert",
+ type: "danger",
+ title: "Error",
+ text: "Something went wrong loading your projects.",
+ },
+ -1,
+ );
}
}
diff --git a/src/views/SeedBackupView.vue b/src/views/SeedBackupView.vue
index 7c19bf53..7935e869 100644
--- a/src/views/SeedBackupView.vue
+++ b/src/views/SeedBackupView.vue
@@ -76,8 +76,15 @@ export default class SeedBackupView extends Vue {
this.activeAccount = R.find((acc) => acc.did === activeDid, accounts);
} catch (err) {
console.error("Got an error loading an identity:", err);
- this.alertTitle = "Error Loading Account";
- this.alertMessage = "Got an error loading your seed data.";
+ this.$notify(
+ {
+ group: "alert",
+ type: "danger",
+ title: "Error Loading Account",
+ text: "Got an error loading your seed data.",
+ },
+ -1,
+ );
}
}
diff --git a/src/views/StatisticsView.vue b/src/views/StatisticsView.vue
index d9875533..0c2c7d62 100644
--- a/src/views/StatisticsView.vue
+++ b/src/views/StatisticsView.vue
@@ -62,8 +62,15 @@ export default class StatisticsView extends Vue {
this.world = newWorld;
} catch (err) {
console.log(err);
- this.alertTitle = "Mounting error";
- this.alertMessage = err.message;
+ this.$notify(
+ {
+ group: "alert",
+ type: "danger",
+ title: "Mounting Error",
+ text: err.message,
+ },
+ -1,
+ );
}
}