fix: make the follow button on a ticket work

The store never sent the follow and unfollow requests to the API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 13:06:48 +02:00
parent 88928b402f
commit 75323115fb
2 changed files with 17 additions and 0 deletions

View File

@@ -228,6 +228,20 @@ export const IssueStore = signalStore(
),
),
),
events
.on(issuePageEvents.watchRequested)
.pipe(
mergeMap(({ payload }) =>
runCommand(
issues.watch(payload.issueId, payload.watching),
payload.watching
? 'Ahora sigues este ticket'
: 'Has dejado de seguir este ticket',
done,
failed,
),
),
),
events
.on(issuePageEvents.linkRequested)
.pipe(