Skip to content

Commit

Permalink
fix: mosaic/namespace metadata on signer changed mosaic/namespace sel…
Browse files Browse the repository at this point in the history
…ector and list update issues fixed (#1702)

Co-authored-by: Baha <bahadir.yilmaz@nem.software>
  • Loading branch information
yilmazbahadir and Baha authored Sep 14, 2021
1 parent d0ae53e commit 51c5504
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
9 changes: 2 additions & 7 deletions src/store/Namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,8 @@ export default {
return linkedAddress;
},

SIGNER_CHANGED({ commit, rootGetters, getters }) {
const namespaces: NamespaceModel[] = getters['namespaces'];
const currentSignerAddress: Address = rootGetters['account/currentSignerAddress'];
if (!currentSignerAddress) {
return;
}
commit('namespaces', { namespaces, currentSignerAddress });
SIGNER_CHANGED({ dispatch }) {
dispatch('LOAD_NAMESPACES');
},

async RESOLVE_NAME({ commit, getters, rootGetters }, namespaceId: NamespaceId): Promise<string> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
v-model="formItems.signerAddress"
:root-signer="currentAccountSigner"
label="form_label_by_account"
@input="onChangeSigner"
@input="onMetadataSignerChanged"
/>
<FormRow v-else>
<template v-slot:label> {{ $t('form_label_by_account') }}: </template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,4 +387,9 @@ export class FormMetadataCreationTs extends FormTransactionBase {
this.updateFormItems(this.value);
}
}

public async onMetadataSignerChanged(address: string) {
this.onChangeSigner(address);
this.formItems.targetId = '';
}
}

0 comments on commit 51c5504

Please sign in to comment.