remove the handle for test-user registration, and add easier instructions

This commit is contained in:
2023-03-19 17:33:18 -06:00
parent 45b54db01e
commit 34a50d75b3
2 changed files with 12 additions and 8 deletions

View File

@@ -203,15 +203,12 @@ import { useClipboard } from "@vueuse/core";
import { db, accountsDB } from "@/db";
import { MASTER_SETTINGS_KEY } from "@/db/tables/settings";
import { deriveAddress, generateSeed, newIdentifier } from "@/libs/crypto";
import { testServerRegisterUser } from "../test";
//import { testServerRegisterUser } from "../test";
@Options({
components: {},
})
export default class AccountViewView extends Vue {
// This registers current user in vue plugin with: $vm.ctx.testRegisterUser()
testRegisterUser = testServerRegisterUser;
address = "";
firstName = "";
lastName = "";
@@ -224,6 +221,12 @@ export default class AccountViewView extends Vue {
// 'created' hook runs when the Vue instance is first created
async created() {
// Uncomment to register this user on the test server.
// To manage within the vue devtools browser extension https://devtools.vuejs.org/
// assign this to a class variable, eg. "registerThisUser = testServerRegisterUser",
// select a component in the extension, and enter in the console: $vm.ctx.registerThisUser()
//testServerRegisterUser();
try {
await db.open();
const settings = await db.settings.get(MASTER_SETTINGS_KEY);