Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Hex seed to profile manager #3765

Open
wants to merge 5 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/playground/src/stores/profile_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface Profile {
pk: string;
keypairType: KeypairType | undefined;
email: string;
hexSeed: string;
}

export interface State {
Expand Down
1 change: 1 addition & 0 deletions packages/playground/src/utils/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export async function loadProfile(grid: GridClient): Promise<Profile> {
pk: (await grid.twins.get({ id: grid!.twinId })).pk,
keypairType: grid.clientOptions!.keypairType,
email: await readEmail(grid),
hexSeed: grid.clientOptions!.mnemonic,
};
}

Expand Down
9 changes: 4 additions & 5 deletions packages/playground/src/weblets/profile_manager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,17 +355,16 @@
<v-col cols="12" md="6" lg="6" xl="6">
<PasswordInputWrapper #="{ props }">
<VTextField
:label="
profileManager.profile.mnemonic.startsWith('0x') || profileManager.profile.mnemonic.length === 64
? 'Your Hex Seed'
: 'Your Mnemonic'
"
:label="'Your Mnemonic'"
readonly
v-model="profileManager.profile.mnemonic"
v-bind="props"
:disabled="activating || creatingAccount || activatingAccount"
/>
</PasswordInputWrapper>
<CopyInputWrapper :data="profileManager.profile.twinId.toString()" #="{ props }">
<VTextField label="Your Hex Seed" readonly v-model="profileManager.profile.hexSeed" v-bind="props" />
amiraabouhadid marked this conversation as resolved.
Show resolved Hide resolved
</CopyInputWrapper>

<CopyInputWrapper :data="profileManager.profile.twinId.toString()" #="{ props }">
<VTextField label="Twin ID" readonly v-model="profileManager.profile.twinId" v-bind="props" />
Expand Down
Loading