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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user