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

fix: Clearing identity: Change message #7827

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 6 additions & 1 deletion components/common/IdentityForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@
:is-mobile="isMobile"
@close="isLoaderModalVisible = false">
<template #action-title>
<span>{{ $t('identity.create') }}</span>
<span>{{
$t(isClearingIdentity ? 'identity.clearing' : 'identity.create')
}}</span>
</template>
</TransactionLoader>
</section>
Expand Down Expand Up @@ -210,6 +212,7 @@ const socialTabs = ref<PillTab[]>([

const deposit = ref('0')
const inputLengthLimit = ref(32)
const isClearingIdentity = ref(false)

const {
identity: identityData,
Expand Down Expand Up @@ -313,6 +316,7 @@ const fetchDeposit = async () => {

const deleteIdentity = async (): Promise<void> => {
const api = await identityApi.value
isClearingIdentity.value = true
initTransactionLoader()
const cb = api.tx.identity.clearIdentity
howAboutToExecute(accountId.value, cb, [], (block: string) => {
Expand All @@ -329,6 +333,7 @@ const deleteIdentity = async (): Promise<void> => {
const setIdentity = async (): Promise<void> => {
isConfirmModalActive.value = false
const api = await identityApi.value
isClearingIdentity.value = false
initTransactionLoader()
const cb = api.tx.identity.setIdentity
const args = [enhanceIdentityData()]
Expand Down
3 changes: 2 additions & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,8 @@
"onChainPlaceholder": "My On-Chain Name",
"namePlaceholder": "Full Legal Name",
"socialsDescription": "Socials will appear on your profile page so that people can easily connect with you.",
"create": "Create Identity"
"create": "Create Identity",
"clearing": "Clearing Identity"
},
"collapse": {
"collection": {
Expand Down