Show a notification when a report is marked as a signal
This commit is contained in:
parent
2f1b612e9e
commit
7a111ab9b3
1 changed files with 8 additions and 0 deletions
|
|
@ -155,6 +155,10 @@
|
|||
},
|
||||
|
||||
async createSignal() {
|
||||
console.log(
|
||||
"Marking report as signal:",
|
||||
this.selectedCommunication.id,
|
||||
);
|
||||
try {
|
||||
const payload = {
|
||||
reportID: this.selectedCommunication.id,
|
||||
|
|
@ -169,6 +173,10 @@
|
|||
if (!response.ok) {
|
||||
throw new Error("Failed to submit signal");
|
||||
}
|
||||
this.showNotification(
|
||||
"Report Marked Signal",
|
||||
`Report #${this.selectedCommunication.id} has been marked as useful signal`,
|
||||
);
|
||||
// Remove from list after creating lead
|
||||
this.removeCurrentFromList();
|
||||
this.fetchCommunications();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue