Skip to content

Commit

Permalink
make account online from msig account
Browse files Browse the repository at this point in the history
  • Loading branch information
scholtz committed Oct 14, 2024
1 parent a3cc7a9 commit a478e8f
Show file tree
Hide file tree
Showing 10 changed files with 523 additions and 135 deletions.
33 changes: 0 additions & 33 deletions src/pages/Account/Assets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,6 @@ export default {
setTransaction: "wallet/setTransaction",
getAsset: "indexer/getAsset",
prolong: "wallet/prolong",
setAccountOnline: "kmd/setAccountOnline",
setAccountOffline: "kmd/setAccountOffline",
openSuccess: "toast/openSuccess",
getAlgod: "algod/getAlgod",
getIndexer: "indexer/getIndexer",
Expand Down Expand Up @@ -401,37 +399,6 @@ export default {
sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
},
async setAccountOnlineAtParticipationNode() {
this.displayOnlineOfflineDialog = false;
this.changeOnline = true;
if (
await this.setAccountOnline({
account: this.$route.params.account,
rounds: this.onlineRounds,
})
) {
await this.sleep(5000);
this.changeOnline = false;
await this.reloadAccount();
this.openSuccess("You have set the account to online mode");
} else {
this.changeOnline = false;
}
},
async setAccountOfflineAtParticipationNode() {
this.displayOnlineOfflineDialog = false;
this.changeOffline = true;
if (
await this.setAccountOffline({ account: this.$route.params.account })
) {
await this.sleep(5000);
this.changeOffline = false;
await this.reloadAccount();
this.openSuccess("You have set the account to offline mode");
} else {
this.changeOffline = false;
}
},
},
};
</script>
33 changes: 0 additions & 33 deletions src/pages/Account/Transactions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,6 @@ export default {
setTransaction: "wallet/setTransaction",
getAsset: "indexer/getAsset",
prolong: "wallet/prolong",
setAccountOnline: "kmd/setAccountOnline",
setAccountOffline: "kmd/setAccountOffline",
openSuccess: "toast/openSuccess",
}),
async makeAssets() {
Expand Down Expand Up @@ -433,37 +431,6 @@ export default {
sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
},
async setAccountOnlineAtParticipationNode() {
this.displayOnlineOfflineDialog = false;
this.changeOnline = true;
if (
await this.setAccountOnline({
account: this.$route.params.account,
rounds: this.onlineRounds,
})
) {
await this.sleep(5000);
this.changeOnline = false;
await this.reloadAccount();
this.openSuccess("You have set the account to online mode");
} else {
this.changeOnline = false;
}
},
async setAccountOfflineAtParticipationNode() {
this.displayOnlineOfflineDialog = false;
this.changeOffline = true;
if (
await this.setAccountOffline({ account: this.$route.params.account })
) {
await this.sleep(5000);
this.changeOffline = false;
await this.reloadAccount();
this.openSuccess("You have set the account to offline mode");
} else {
this.changeOffline = false;
}
},
},
};
</script>
Loading

0 comments on commit a478e8f

Please sign in to comment.