Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Refresh buttons when starting an entry to quickly update the previous button #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
2 changes: 2 additions & 0 deletions plugin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ async function toggle(context, settings) {
} else {
//Just start the new one, old one will stop, it's toggl.
startEntry(apiToken, activity, workspaceId, projectId, billableToggle).then(v=>refreshButtons())
// Let's not wait until the next polling to disable the old button
refreshButtons();
}
})
}
Expand Down