Subject line: Added v-model for input box on seed input.

Also completed recovery from seed.  Should be ready to move to Make commitment
This commit is contained in:
Matthew Aaron Raymer
2022-12-22 15:24:17 +08:00
parent 65381e103c
commit 3687e5e282
2 changed files with 44 additions and 15 deletions

View File

@@ -206,27 +206,24 @@ export default class AccountViewView extends Vue {
this.publicHex,
this.UPORT_ROOT_DERIVATION_PATH,
] = deriveAddress(this.mnemonic);
//appStore.dispatch(appSlice.actions.addLog({log: false, msg: "... derived keys and address..."}))
const prevIds = previousIdentifiers || [];
if (toLowercase) {
const foundEqual = R.find(
(id: IIdentifier) => id.did.split(":")[2] === this.address,
prevIds
);
if (foundEqual) {
// appStore.dispatch(appSlice.actions.addLog({log: true, msg: "Will create a normal-case version of the DID since a regular version exists."}))
} else {
const foundEqual =
R.find(
(id: IIdentifier) => id.did.split(":")[2] === this.address,
prevIds
) || false;
if (foundEqual === false) {
this.address = this.address.toLowerCase();
}
} else {
// They're not trying to convert to lowercase.
const foundLower = R.find(
(id: IIdentifier) =>
id.did.split(":")[2] === this.address.toLowerCase(),
prevIds
);
if (foundLower) {
// appStore.dispatch(appSlice.actions.addLog({log: true, msg: "Will create a lowercase version of the DID since a lowercase version exists."}))
this.address = this.address.toLowerCase();
}
}