mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: update confirmation messages to use Slack's link formatting for alerts, incidents, and scheduled maintenance
This commit is contained in:
@@ -919,7 +919,7 @@ export default class SlackAlertActions {
|
||||
).toString();
|
||||
|
||||
const confirmationMessage: string =
|
||||
`✅ Message saved as **private note** to [Alert #${alertNumber}](${alertLink}).`;
|
||||
`✅ Message saved as *private note* to <${alertLink}|Alert #${alertNumber}>.`;
|
||||
|
||||
await SlackUtil.sendMessageToThread({
|
||||
authToken: authToken,
|
||||
|
||||
@@ -1451,8 +1451,8 @@ export default class SlackIncidentActions {
|
||||
|
||||
const confirmationMessage: string =
|
||||
noteType === "private"
|
||||
? `✅ Message saved as **private note** to [Incident #${incidentNumber}](${incidentLink}).`
|
||||
: `✅ Message saved as **public note** to [Incident #${incidentNumber}](${incidentLink}). This note will be visible on the status page.`;
|
||||
? `✅ Message saved as *private note* to <${incidentLink}|Incident #${incidentNumber}>.`
|
||||
: `✅ Message saved as *public note* to <${incidentLink}|Incident #${incidentNumber}>. This note will be visible on the status page.`;
|
||||
|
||||
await SlackUtil.sendMessageToThread({
|
||||
authToken: authToken,
|
||||
|
||||
@@ -1276,8 +1276,8 @@ export default class SlackScheduledMaintenanceActions {
|
||||
|
||||
const confirmationMessage: string =
|
||||
noteType === "private"
|
||||
? `✅ Message saved as **private note** to [Scheduled Maintenance #${scheduledMaintenanceNumber}](${scheduledMaintenanceLink}).`
|
||||
: `✅ Message saved as **public note** to [Scheduled Maintenance #${scheduledMaintenanceNumber}](${scheduledMaintenanceLink}). This note will be visible on the status page.`;
|
||||
? `✅ Message saved as *private note* to <${scheduledMaintenanceLink}|Scheduled Maintenance #${scheduledMaintenanceNumber}>.`
|
||||
: `✅ Message saved as *public note* to <${scheduledMaintenanceLink}|Scheduled Maintenance #${scheduledMaintenanceNumber}>. This note will be visible on the status page.`;
|
||||
|
||||
await SlackUtil.sendMessageToThread({
|
||||
authToken: authToken,
|
||||
|
||||
Reference in New Issue
Block a user