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

feat: add secretnote-lite package #54

Merged
merged 22 commits into from
Jul 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: optimize stop server
NewByVector committed Jul 19, 2024
commit acb9fdee2a9d5f36a55e78021ee01ed6c75aa97e
2 changes: 2 additions & 0 deletions packages/secretnote-lite/src/modules/node/view.tsx
Original file line number Diff line number Diff line change
@@ -79,6 +79,7 @@ const NodeDetails = (props: { node: Node }) => {
};

const startNode = async (id: string) => {
setLoading(true);
try {
await instance.service.startNode(id);
message.success(l10n.t('启动成功'));
@@ -92,6 +93,7 @@ const NodeDetails = (props: { node: Node }) => {
};

const stopNode = async (id: string) => {
setLoading(true);
try {
await instance.service.stopNode(id);
message.success(l10n.t('停止成功'));