1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-06-15 00:05:15 +02:00

Feature(UI): List messages in side nav when viewing message for easy navigation (#336)

This commit is contained in:
Ralph Slooten
2024-08-04 17:04:14 +12:00
parent 54e0c32948
commit a1cb0af639
21 changed files with 636 additions and 162 deletions

View File

@ -115,8 +115,10 @@ export default {
* @params function callback function
* @params function error callback function
*/
get(url, values, callback, errorCallback) {
this.loading++
get(url, values, callback, errorCallback, hideLoader) {
if (!hideLoader) {
this.loading++
}
axios.get(url, { params: values })
.then(callback)
.catch((err) => {
@ -128,7 +130,7 @@ export default {
})
.then(() => {
// always executed
if (this.loading > 0) {
if (!hideLoader && this.loading > 0) {
this.loading--
}
})
@ -273,6 +275,11 @@ export default {
return 'bi-file-arrow-down-fill'
},
// wrapper to update one or more messages with
updateMessages(messages, updates) {
},
// Returns a hex color based on a string.
// Values are stored in an array for faster lookup / processing.
colorHash(s) {