Skip to content

Commit 1357cc4

Browse files
feat(mail): add the cross-request toolbar tooltip and the missing-file text to MailMessage. (#72)
1 parent 8f9a8b7 commit 1357cc4

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎src/Panel/Mail/MailMessage.php‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ enum MailMessage: string
7979
*/
8080
case FAILED_SUFFIX = ' failed';
8181

82+
/**
83+
* Body of the `404` response when a requested `.eml` download does not exist in the mail directory.
84+
*/
85+
case FILE_NOT_FOUND = 'Mail file not found';
86+
8287
/**
8388
* Header of the sender column, also used as its detail field label.
8489
*/
@@ -119,6 +124,12 @@ enum MailMessage: string
119124
*/
120125
case PLACEHOLDER = '—';
121126

127+
/**
128+
* `sprintf()` template of the toolbar metric tooltip that opens the request which sent the mail before a
129+
* redirect; it receives the request method and path.
130+
*/
131+
case PREVIOUS_REQUEST = 'Sent in the previous request (%s %s) — open it.';
132+
122133
/**
123134
* Detail field label of the reply-to recipients.
124135
*/

0 commit comments

Comments
 (0)