Merge pull request #42 from franze6/DID-10
Change fetch Node info data for POST methods
This commit is contained in:
@@ -28,6 +28,8 @@ class Store {
|
|||||||
constructor() {
|
constructor() {
|
||||||
makeAutoObservable(this,{});
|
makeAutoObservable(this,{});
|
||||||
|
|
||||||
|
this.fetchNodeInfo()
|
||||||
|
|
||||||
reaction(() => this.keysArray, () => this.fetchSharedData())
|
reaction(() => this.keysArray, () => this.fetchSharedData())
|
||||||
onBecomeObserved(this, "decryptedUserData", () => this.fetchNewAccountData())
|
onBecomeObserved(this, "decryptedUserData", () => this.fetchNewAccountData())
|
||||||
onBecomeObserved(this, "sharedData", ()=>this.fetchKeysArray())
|
onBecomeObserved(this, "sharedData", ()=>this.fetchKeysArray())
|
||||||
@@ -101,6 +103,12 @@ class Store {
|
|||||||
this._accountData = data;
|
this._accountData = data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fetchNodeInfo() {
|
||||||
|
getNodeInfo()
|
||||||
|
.then((info)=>this.fetchNodeInfoSuccess(info))
|
||||||
|
.catch((err) => this.fetchNodeInfoFailed(err))
|
||||||
|
}
|
||||||
|
|
||||||
saveInfoTransactions(transaction) {
|
saveInfoTransactions(transaction) {
|
||||||
this._transactionsInfo = transaction.data
|
this._transactionsInfo = transaction.data
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user