Skip to content

Commit

Permalink
Merge pull request #525 from threefoldtech/development_profile_manage…
Browse files Browse the repository at this point in the history
…r_shared_password

Clear profile manager fields when switching between Login and Connect
  • Loading branch information
Mahmoud-Emad authored Jun 12, 2023
2 parents 468b501 + 9a91234 commit 5a1e979
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/playground/src/weblets/profile_manager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
@tab:change="
() => {
clearError();
passwordInput.validate(password);
clearFields();
}
"
>
Expand Down Expand Up @@ -295,6 +295,15 @@ watch(
m => {
if (m) {
nextTick().then(mounted);
} else {
nextTick().then(() => {
if (isStoredCredentials()) {
activeTab.value = 0;
} else {
activeTab.value = 1;
}
clearFields();
});
}
},
);
Expand Down Expand Up @@ -412,6 +421,11 @@ function clearError() {
createAccountError.value = null;
}
function clearFields() {
password.value = "";
mnemonic.value = "";
}
async function activate(mnemonic: string) {
clearError();
activating.value = true;
Expand Down

0 comments on commit 5a1e979

Please sign in to comment.