Skip to content

Commit

Permalink
Support ticket toasts now link to the ticket.
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-bstein committed Nov 20, 2024
1 parent 66c17ce commit 26f6d5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion projects/gameboard-ui/src/app/api/support.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { firstValueFrom, Observable, of } from 'rxjs';
import { catchError, first, last, map, tap } from 'rxjs/operators';
import { map, tap } from 'rxjs/operators';
import { ConfigService } from '../utility/config.service';
import { ChallengeOverview } from './board-models';
import { PlayerService } from './player.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class SupportHubService {
this.appNotificationsService.send({
title: `Ticket Closed: ${ev.data.ticket.key}`,
body: ev.data.ticket.summary,
appUrl: this.routerService.getTicketUrl(ev.data.ticket.key),
appUrl: this.routerService.getTicketUrl(ev.data.ticket.id),
tag: `support-closed-${ev.data.ticket.id}`
});
}
Expand All @@ -60,7 +60,7 @@ export class SupportHubService {
this.appNotificationsService.send({
title: `New Ticket: ${ev.data.ticket.key}`,
body: ev.data.ticket.summary,
appUrl: this.routerService.getTicketUrl(ev.data.ticket.key),
appUrl: this.routerService.getTicketUrl(ev.data.ticket.id),
tag: `support-created-${ev.data.ticket.id}`
});
}
Expand All @@ -71,7 +71,7 @@ export class SupportHubService {
this.appNotificationsService.send({
title: `Ticket updated by Support: ${ev.data.ticket.key}`,
body: ev.data.ticket.summary,
appUrl: this.routerService.getTicketUrl(ev.data.ticket.key),
appUrl: this.routerService.getTicketUrl(ev.data.ticket.id),
tag: `support-updated-by-support-${ev.data.ticket.id}`
});
}
Expand All @@ -82,7 +82,7 @@ export class SupportHubService {
this.appNotificationsService.send({
title: `Ticket updated by Player: ${ev.data.ticket.key}`,
body: ev.data.ticket.summary,
appUrl: this.routerService.getTicketUrl(ev.data.ticket.key),
appUrl: this.routerService.getTicketUrl(ev.data.ticket.id),
tag: `support-updated-by-user-${ev.data.ticket.id}`
});
}
Expand Down

0 comments on commit 26f6d5b

Please sign in to comment.