forked from jsnbuchanan/crowd-funder-for-time-pwa
remove the handle for test-user registration, and add easier instructions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user