mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 08:43:10 -07:00
better notification action ordering
This commit is contained in:
parent
f9af82edcf
commit
2c1f38b9f2
1 changed files with 9 additions and 9 deletions
|
|
@ -80,6 +80,15 @@ func (m *Monitor) sendNotification(msg *protonmail.Message) {
|
|||
Message: subject,
|
||||
Tag: "proton-" + msg.ID,
|
||||
Actions: []notification.Action{
|
||||
{
|
||||
ID: "delete",
|
||||
Label: "Delete",
|
||||
Endpoint: "/api/v1/proton/delete",
|
||||
Method: "POST",
|
||||
Data: map[string]any{
|
||||
"uid": msg.ID,
|
||||
},
|
||||
},
|
||||
{
|
||||
ID: "archive",
|
||||
Label: "Archive",
|
||||
|
|
@ -98,15 +107,6 @@ func (m *Monitor) sendNotification(msg *protonmail.Message) {
|
|||
"uid": msg.ID,
|
||||
},
|
||||
},
|
||||
{
|
||||
ID: "delete",
|
||||
Label: "Delete",
|
||||
Endpoint: "/api/v1/proton/delete",
|
||||
Method: "POST",
|
||||
Data: map[string]any{
|
||||
"uid": msg.ID,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue