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

Feature: delete spectrum node #2047

Merged
merged 3 commits into from Jan 12, 2023

Conversation

k9ert
Copy link
Collaborator

@k9ert k9ert commented Jan 11, 2023

With this PR, the user can delete Spectrum Nodes.
Also we're fixing cryptoadvance/spectrum#13 with a3414c3

@netlify
Copy link

netlify bot commented Jan 11, 2023

Deploy Preview for specter-desktop-docs canceled.

Name Link
🔨 Latest commit aa9fb00
🔍 Latest deploy log https://app.netlify.com/sites/specter-desktop-docs/deploys/63bed99b95f9ac00097ad6c4

@@ -48,8 +48,13 @@
</select>
</div>
<div class="row" style="margin-top: 25px">
<button type="submit" class="btn">{{ _("Save") }}</button>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Connect" instead of "Save"

if action == "delete":
if node_is_running_before_request:
ext().disable_spectrum()
flash("Spectrum Node deleted")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spectrum Node disconnected!

ext().disable_spectrum()
flash("Spectrum Node deleted")
else:
flash("There is no node running, can't delete", "error")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't disconnect!

@moneymanolis
Copy link
Collaborator

moneymanolis commented Jan 11, 2023

When I try to delete the Spectrum node I get:

grafik

OK, the reason for that was that the node was setup without this PR code, works if the node is setup with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants