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

Feature: Add optional label to identify Mailpit instance (#316)

This commit is contained in:
Ralph Slooten
2024-06-21 16:54:33 +12:00
parent 8de2c5ec81
commit a155b395db
11 changed files with 64 additions and 7 deletions

View File

@ -14,11 +14,16 @@ export default {
},
beforeMount() {
document.title = document.title + ' - ' + location.hostname
// load global config
this.get(this.resolve('/api/v1/webui'), false, function (response) {
mailbox.uiConfig = response.data
if (mailbox.uiConfig.Label) {
document.title = document.title + ' - ' + mailbox.uiConfig.Label
} else {
document.title = document.title + ' - ' + location.hostname
}
})
},