Skip to content

Commit

Permalink
[toggl-track] Fix timer not stopping from main window (raycast#13821)
Browse files Browse the repository at this point in the history
* fix: resolve issue with stopping a running time entry in TT extension

* Update CHANGELOG.md

* Update package.json

* Update CHANGELOG.md

* Update CHANGELOG.md and optimise images

---------

Co-authored-by: Milena Araujo <[email protected]>
Co-authored-by: raycastbot <[email protected]>
  • Loading branch information
3 people committed Aug 2, 2024
1 parent a7e783a commit 4a63173
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions extensions/toggl-track/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Toggl Track Changelog

## [Bug Fixes] - 2024-08-02

- Resolve issue when stopping a running time entry doesn't work

## [Bug Fixes] - 2024-07-31

- Do not show currently running time entry in the recent time entries list
Expand Down
2 changes: 1 addition & 1 deletion extensions/toggl-track/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
{
"description": "The API token for your Toggl account.",
"name": "togglApiToken",
"placeholder": "Can be found at https://track.toggl.com/profile",
"placeholder": "Can be found at https://track.toggl.com/profile#api-token-label",
"required": true,
"title": "Toggl API Token",
"type": "password"
Expand Down
6 changes: 5 additions & 1 deletion extensions/toggl-track/src/components/RunningTimeEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ function RunningTimeEntry({
icon={{ source: Icon.Circle, tintColor: runningTimeEntry.project_color }}
actions={
<ActionPanel>
<Action.SubmitForm icon={{ source: Icon.Clock }} onSubmit={stopRunningTimeEntry} title="Stop Time Entry" />
<Action.SubmitForm
icon={{ source: Icon.Clock }}
onSubmit={() => stopRunningTimeEntry(runningTimeEntry)}
title="Stop Time Entry"
/>
</ActionPanel>
}
/>
Expand Down

0 comments on commit 4a63173

Please sign in to comment.