161 |
164 | flux.dispatch('accounts/reset-stats', selectedAccount)
165 | }
166 | >
167 | Reset Stats
168 |
169 |
{
176 | if (!generatingKeys) {
177 | generateKeys();
178 | }
179 | }}
180 | >
181 | {hasKeys ? 'Re-' : ''}Generate Keys
182 |
183 | {hasKeys && (
184 |
{
191 | if (!participating || !sameKeys) {
192 | await window.goal.deletepartkey(
193 | account.nodeParticipation.id!,
194 | );
195 | // re-load the account to get the new key information
196 | flux.dispatch('accounts/add', selectedAccount);
197 | }
198 | }}
199 | >
200 | Remove Keys
201 |
202 | )}
203 |
{
210 | if (canRemove) {
211 | await flux.dispatch('accounts/remove', selectedAccount);
212 | setSelectedAccount('');
213 | }
214 | }}
215 | >
216 | Remove Account
217 |
218 |
219 | )}
220 | >
221 |