-
+
@@ -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 08129049d..7935e8697 100644
--- a/src/views/SeedBackupView.vue
+++ b/src/views/SeedBackupView.vue
@@ -20,22 +20,26 @@
-
- BEWARE: Anyone who gets hold of this mnemonic seed phrase will be able
- impersonate you and take over any digital holdings based on it. So only
- reveal it when you are in a private place out of sight of other eyes,
- and only record it in something private -- don't take a screenshot or
- send it to any online service.
+
+ BEWARE! Anyone who has this seed phrase will
+ be able impersonate you and take over any digital holdings based on it.
+ Reveal it when you are somewhere only you can see your screen, and
+ record it somewhere only you have access.
+ Don't take a screenshot or send it to any online service.
-
- Click here when you're ready to see it.
-
+
+
+ Reveal my Seed Phrase
+
-
{{ activeAccount.mnemonic }}
+
+ {{ activeAccount.mnemonic }}
+
+
You do not have an active identity.
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 d98755332..0c2c7d625 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,
+ );
}
}